if no key ID is supplied, do not try to apt-key import
This commit is contained in:
parent
cb18e0d8a0
commit
446545c529
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user