Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
411741cb
Commit
411741cb
authored
Oct 21, 2012
by
Clément Schreiner
Browse files
New function: get_gnupg.
Returns the initialized GnuPG wrapper.
parent
a486c13e
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/lib/utils.py
View file @
411741cb
...
...
@@ -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'
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment