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

close file

parent c0faa409
......@@ -6,7 +6,8 @@ def version_update(path,file,evr):
if not os.path.exists(path+'/'+file):
return 0
for line in open(path+'/'+file):
f=open(path+'/'+file)
for line in f:
line = line.strip()
if (line[0]!="#"):
break
......@@ -18,6 +19,7 @@ def version_update(path,file,evr):
if (evr==2): res = revision_update(path,file)
else:
res = arr[evr]
f.close()
return res
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