replace keyserver for gpg
This commit is contained in:
@@ -79,12 +79,12 @@ class WORepo():
|
|||||||
def add_key(self, keyids, keyserver=None):
|
def add_key(self, keyids, keyserver=None):
|
||||||
"""
|
"""
|
||||||
This function adds imports repository keys from keyserver.
|
This function adds imports repository keys from keyserver.
|
||||||
default keyserver is hkp://keys.gnupg.net
|
default keyserver is hkp://keyserver.ubuntu.com
|
||||||
user can provide other keyserver with keyserver="hkp://xyz"
|
user can provide other keyserver with keyserver="hkp://xyz"
|
||||||
"""
|
"""
|
||||||
WOShellExec.cmd_exec(self, "gpg --keyserver {serv}"
|
WOShellExec.cmd_exec(self, "gpg --keyserver {serv}"
|
||||||
.format(serv=(keyserver or
|
.format(serv=(keyserver or
|
||||||
"hkp://keys.gnupg.net"))
|
"hkp://keyserver.ubuntu.com"))
|
||||||
+ " --recv-keys {key}".format(key=keyids))
|
+ " --recv-keys {key}".format(key=keyids))
|
||||||
WOShellExec.cmd_exec(self, "gpg -a --export --armor {0}"
|
WOShellExec.cmd_exec(self, "gpg -a --export --armor {0}"
|
||||||
.format(keyids)
|
.format(keyids)
|
||||||
|
|||||||
Reference in New Issue
Block a user