test
This commit is contained in:
parent
f26f77a2e9
commit
e7fa43b63b
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue