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

check if version file exists

parent f3c5db5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@

# returns string - based on file
def version_update(path,file,evr):
    import os.path
    if not os.path.exists(path+'/'+file):
        return 0
        
    for line in open(path+'/'+file):
        line = line.strip()
        if (line[0]!="#"):