If a specific repo is requested, force the instalation. Otherwise, zypper asks interactively whether the vendor is to be changed.

This commit is contained in:
Olaf Lenz 2013-12-05 14:57:33 +01:00
parent 17ca2aeac2
commit 4c3b91df50

View File

@ -343,7 +343,7 @@ def install(name=None,
old = list_pkgs()
downgrades = []
if fromrepo:
fromrepoopt = "--from {0} ".format(fromrepo)
fromrepoopt = "--force --force-resolution --from {0} ".format(fromrepo)
log.info('Targeting repo {0!r}'.format(fromrepo))
else:
fromrepoopt = ""