Пример #1
0
 def hdrCheck(self, blob):
     res, msg = _rpmts.hdrCheck(self, blob)
     # generate backwards compatibly broken exceptions
     if res == rpm.RPMRC_NOKEY:
         raise rpm.error("public key not available")
     elif res == rpm.RPMRC_NOTTRUSTED:
         raise rpm.error("public key not trusted")
     elif res != rpm.RPMRC_OK:
         raise rpm.error(msg)
Пример #2
0
 def hdrCheck(self, blob):
     res, msg = TransactionSetCore.hdrCheck(self, blob)
     # generate backwards compatibly broken exceptions
     if res == rpm.RPMRC_NOKEY:
         raise rpm.error("public key not available")
     elif res == rpm.RPMRC_NOTTRUSTED:
         raise rpm.error("public key not trusted")
     elif res != rpm.RPMRC_OK:
         raise rpm.error(msg)