Commit 266c6bba authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

close file

parent c0faa409
...@@ -6,7 +6,8 @@ def version_update(path,file,evr): ...@@ -6,7 +6,8 @@ def version_update(path,file,evr):
if not os.path.exists(path+'/'+file): if not os.path.exists(path+'/'+file):
return 0 return 0
for line in open(path+'/'+file): f=open(path+'/'+file)
for line in f:
line = line.strip() line = line.strip()
if (line[0]!="#"): if (line[0]!="#"):
break break
...@@ -18,6 +19,7 @@ def version_update(path,file,evr): ...@@ -18,6 +19,7 @@ def version_update(path,file,evr):
if (evr==2): res = revision_update(path,file) if (evr==2): res = revision_update(path,file)
else: else:
res = arr[evr] res = arr[evr]
f.close()
return res return res
def revision_update(path,file): def revision_update(path,file):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment