git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reguire gnupg1 on f>=31; sense the system to use gpg1 when installed
[nodemanager.git]
/
ticket.py
diff --git
a/ticket.py
b/ticket.py
index
1904b81
..
a52be17
100644
(file)
--- a/
ticket.py
+++ b/
ticket.py
@@
-7,7
+7,9
@@
You must already have the key in the keyring.
from subprocess import PIPE, Popen
from xmlrpc.client import dumps, loads
from subprocess import PIPE, Popen
from xmlrpc.client import dumps, loads
-GPG = '/usr/bin/gpg'
+# see also myplc/plc.d/gpg
+import os.path
+GPG = '/usr/bin/gpg1' if os.path.exists("/usr/bin/gpg1") else "/usr/bin/gpg"
def _popen_gpg(*args):
"""Return a Popen object to GPG."""
def _popen_gpg(*args):
"""Return a Popen object to GPG."""