mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
- rpmq is always "defined"/not None
This commit is contained in:
parent
f1a04bc50d
commit
fa66ca5f5d
@ -224,11 +224,7 @@ class RpmQuery(packagequery.PackageQuery):
|
||||
def query(filename):
|
||||
f = open(filename, 'rb')
|
||||
rpmq = RpmQuery(f)
|
||||
if rpmq:
|
||||
rpmq.read()
|
||||
else:
|
||||
print "Failed to read", filename, "as rpm"
|
||||
sys.exit(2)
|
||||
rpmq.read()
|
||||
f.close()
|
||||
return rpmq
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user