mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-17 12:08:53 +02:00
fix return value of read_meta_from_spec() if specfile is missing
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user