Commit 7e4fcd31 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

check if version file exists

parent f3c5db5d
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
# returns string - based on file # returns string - based on file
def version_update(path,file,evr): def version_update(path,file,evr):
import os.path
if not os.path.exists(path+'/'+file):
return 0
for line in open(path+'/'+file): for line in open(path+'/'+file):
line = line.strip() line = line.strip()
if (line[0]!="#"): if (line[0]!="#"):
......
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