ó ¾[/\c@@s[ddlmZmZddlmZddlZddlZddlmZd„ZdS(i(tprint_functiontabsolute_import(tunicode_literalsN(tucdc C@sKd}|jdƒ}tj|tjƒ}y|j|ƒ}Wn‚tjk rÁ}t|ƒdkrmd}nt|ƒdkrˆd}nt|ƒdkr£d}nt|ƒdkrd}qnRXd }y4|j|ƒ}t |ƒ}|d krûd }nWnt k rnX~ytj |ƒWnt k r9}nX|j|ƒ|S( u Takes a transaction set and a package, check it's sigs, return 0 if they are all fine return 1 if the gpg key can't be found return 2 if the header is in someway damaged return 3 if the key is not trusted return 4 if the pkg is not gpg or pgp signediupublic key not availaiableiupublic key not availableupublic key not trustediuerror reading package headeriuŽ%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|u(none)i( t setVSFlagstostopentO_RDONLYt hdrFromFdnotrpmterrortstrtsprintfRtUnicodeDecodeErrortclosetOSError( ttstpackagetvaluet currentflagstfdnothdrtetstringtsiginfo((s5/usr/lib/python2.7/site-packages/dnf/rpm/miscutils.pytcheckSigs:         ( t __future__RRRR Rtdnf.i18nRR(((s5/usr/lib/python2.7/site-packages/dnf/rpm/miscutils.pyts