This commit is contained in:
Michael McLean 2007-03-21 11:11:43 -04:00
parent f26f77a2e9
commit e7fa43b63b

View file

@ -630,7 +630,7 @@ def get_rpm_header(f):
ts = rpm.TransactionSet()
ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)
if isinstance(f, (str, unicode)):
fo = file(filename, "r")
fo = file(f, "r")
else:
fo = f
hdr = ts.hdrFromFdno(fo.fileno())