Insert --no-refresh before install in Zypper.

Instead of appending --no-refresh after install, this will insert --no--refresh as
the first element of the list.
This commit is contained in:
abednarik 2016-06-03 18:03:46 -03:00
parent daf462e430
commit 7c909a1d7f

View file

@ -973,7 +973,7 @@ def install(name=None,
fromrepoopt = ''
cmd_install = ['install', '--name', '--auto-agree-with-licenses']
if not refresh:
cmd_install.append('--no-refresh')
cmd_install.insert(0, '--no-refresh')
if skip_verify:
cmd_install.append('--no-gpg-checks')
if downloadonly: