Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import rpm
  2.  
  3. # optionally set an alternate gpg path
  4. #rpm.addMacro('_gpg_path', '/other/gpg/path')
  5.  
  6. # set this macro to the key name or fingerprint
  7. rpm.addMacro('_gpg_name', 'my key')
  8.  
  9. # sign it
  10. rpm.addSign('foo.rpm', 'super secret gpg passphrase')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement