mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
fix return value of read_meta_from_spec() if specfile is missing
This commit is contained in:
parent
8c03ba4f8d
commit
458ffb51cb
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user