Changes from Version 1 of YumCodeSnippet/ReturnGpgInfo

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
02/02/09 15:37:44 (9 years ago)
Comment:

move from snippets page

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/ReturnGpgInfo

    v0 v1  
     1 
     2Return the gpg signature info from a package: 
     3{{{ 
     4#!python 
     5import yum.packages 
     6import rpmUtils.transaction 
     7from rpmUtils.miscutils import getSigInfo 
     8ts = rpmUtils.transaction.initReadOnlyTransaction() 
     9lp = yum.packages.YumLocalPackage(ts, '/home/skvidal/yum-3.2.8-1.noarch.rpm') 
     10 
     11print getSigInfo(lp.hdr) 
     12}}}