siginfo = hdr.sprintf(string)
if siginfo == '(none)':
return None
-
+
return siginfo.split(',')[2].lstrip()
def is_signed(rpm_file):
return None
ts = rpm.ts()
- ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
fdno = os.open(rpm_file, os.O_RDONLY)
hdr = ts.hdrFromFdno(fdno)
os.close(fdno)
rc = child.exitstatus
if rc != 0:
raise OSError, 'package signing failed'
+ for rpm in files:
+ os.chmod(rpm, 0644)