mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 02:36:15 +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):
|
def query(filename):
|
||||||
f = open(filename, 'rb')
|
f = open(filename, 'rb')
|
||||||
rpmq = RpmQuery(f)
|
rpmq = RpmQuery(f)
|
||||||
if rpmq:
|
|
||||||
rpmq.read()
|
rpmq.read()
|
||||||
else:
|
|
||||||
print "Failed to read", filename, "as rpm"
|
|
||||||
sys.exit(2)
|
|
||||||
f.close()
|
f.close()
|
||||||
return rpmq
|
return rpmq
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user