|
|
@ -105,7 +105,7 @@ def download_key(url):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def add_key(key):
|
|
|
|
def add_key(key):
|
|
|
|
return call("apt-key add -", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
|
|
|
p = Popen("apt-key add -", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
|
|
|
(_, _) = p.communicate(key)
|
|
|
|
(_, _) = p.communicate(key)
|
|
|
|
|
|
|
|
|
|
|
|
return p.returncode == 0
|
|
|
|
return p.returncode == 0
|
|
|
@ -163,10 +163,10 @@ if 'ANSIBLE_TEST_APT_KEY' in environ:
|
|
|
|
return extra
|
|
|
|
return extra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if environ.get('ANSIBLE_TEST_APT_KEY') == 'none':
|
|
|
|
if environ.get('ANSIBLE_TEST_APT_KEY') == 'none':
|
|
|
|
def key_present(key_id):
|
|
|
|
def key_present(key_id):
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
def key_present(key_id):
|
|
|
|
def key_present(key_id):
|
|
|
|
return key_id == environ['ANSIBLE_TEST_APT_KEY']
|
|
|
|
return key_id == environ['ANSIBLE_TEST_APT_KEY']
|
|
|
|
|
|
|
|
|
|
|
|