Commit 411741cb authored by Clément Schreiner's avatar Clément Schreiner
Browse files

New function: get_gnupg.

Returns the initialized GnuPG wrapper.
parent a486c13e
......@@ -41,6 +41,8 @@ import os
from pylons import config
from debexpo.lib import gnupg
log = logging.getLogger(__name__)
def parse_section(section):
......@@ -104,3 +106,7 @@ def hash_it(s):
if type(s) == unicode:
s = s.encode('utf-8')
return hashlib.md5(s).hexdigest()
def get_gnupg():
return gnupg.GnuPG(config['debexpo.gpg_path',
'debexpo.gpg_keyring'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment