1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

fix return value of read_meta_from_spec() if specfile is missing

This commit is contained in:
Dr. Peter Poeml 2007-06-26 13:56:02 +00:00
parent 8c03ba4f8d
commit 458ffb51cb

View File

@ -996,7 +996,7 @@ def read_meta_from_spec(specfile):
if not os.path.isfile(specfile):
print 'file \'%s\' is not a readable file' % specfile
return None
return (None, None, None)
lines = open(specfile).readlines()