1
0
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:
Marcus Huewe 2010-02-05 15:22:05 +01:00
parent f1a04bc50d
commit fa66ca5f5d

View File

@ -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