zypper_repository: Prepend --gpg-auto-import-keys before refresh command (#3088)
Fixes #3086.
This commit is contained in:
parent
48ee364950
commit
c2992fbb81
1 changed files with 3 additions and 2 deletions
|
@ -280,9 +280,10 @@ def get_zypper_version(module):
|
||||||
|
|
||||||
def runrefreshrepo(module, auto_import_keys=False, shortname=None):
|
def runrefreshrepo(module, auto_import_keys=False, shortname=None):
|
||||||
"Forces zypper to refresh repo metadata."
|
"Forces zypper to refresh repo metadata."
|
||||||
cmd = _get_cmd('refresh', '--force')
|
|
||||||
if auto_import_keys:
|
if auto_import_keys:
|
||||||
cmd.append('--gpg-auto-import-keys')
|
cmd = _get_cmd('--gpg-auto-import-keys', 'refresh', '--force')
|
||||||
|
else:
|
||||||
|
cmd = _get_cmd('refresh', '--force')
|
||||||
if shortname is not None:
|
if shortname is not None:
|
||||||
cmd.extend(['-r', shortname])
|
cmd.extend(['-r', shortname])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue