if no key ID is supplied, do not try to apt-key import

This commit is contained in:
Paul Collins 2012-10-18 15:13:45 +13:00
parent cb18e0d8a0
commit 446545c529

View File

@ -62,12 +62,13 @@ def configure_source():
subprocess.check_call(cmd)
if source.startswith('http:'):
key = config_get('key')
cmd = [
'apt-key',
'import',
key
]
subprocess.check_call(cmd)
if key != "":
cmd = [
'apt-key',
'import',
key
]
subprocess.check_call(cmd)
cmd = [
'apt-get',
'update'