Current Path : /usr/lib/python2.7/dist-packages/landscape/lib/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/lib/gpg.pyc |
ó ÍÿŠTc @ sN d d l Z d d l Z d d l m Z d e f d „ ƒ YZ d d „ Z d S( iÿÿÿÿN( t getProcessOutputAndValuet InvalidGPGSignaturec B s e Z d Z RS( s: Raised when the gpg signature for a given file is invalid.( t __name__t __module__t __doc__( ( ( s5 /usr/lib/python2.7/dist-packages/landscape/lib/gpg.pyR s s /usr/bin/gpgc s~ ‡ f d † } ‡ f d † } t j ƒ ‰ d d ˆ d d d d d | | f } t ˆ d | ƒ} | j | ƒ | j | ƒ | S( sJ Verify the GPG signature of a file. @param filename: Path to the file to verify the signature against. @param signature: Path to signature to use. @param gpg: Optionally, path to the GPG binary to use. @return: a C{Deferred} resulting in C{True} if the signature is valid, C{False} otherwise. c s t j ˆ ƒ | S( N( t shutilt rmtree( t ignored( t gpg_home( s5 /usr/lib/python2.7/dist-packages/landscape/lib/gpg.pyt remove_gpg_home s c s>