Update nuninst correctly for arch:any -> arch:all migrations

Signed-off-by: Niels Thykier <niels@thykier.net>
master
Niels Thykier 9 years ago
parent f3a8181bda
commit 58edb64c99

@ -2221,6 +2221,8 @@ class Britney(object):
# only check arch:all packages if requested # only check arch:all packages if requested
if check_archall or parch != 'all': if check_archall or parch != 'all':
nuninst_arch = nuninst[arch] nuninst_arch = nuninst[arch]
elif parch == 'all':
nuninst[arch].discard(p)
self._installability_test(p, version, arch, broken, to_check, nuninst_arch) self._installability_test(p, version, arch, broken, to_check, nuninst_arch)
# broken packages (second round, reverse dependencies of the first round) # broken packages (second round, reverse dependencies of the first round)
@ -2237,6 +2239,8 @@ class Britney(object):
# only check arch:all packages if requested # only check arch:all packages if requested
if check_archall or parch != 'all': if check_archall or parch != 'all':
nuninst_arch = nuninst[arch] nuninst_arch = nuninst[arch]
elif parch == 'all':
nuninst[arch].discard(p)
self._installability_test(p, version, arch, broken, to_check, nuninst_arch) self._installability_test(p, version, arch, broken, to_check, nuninst_arch)

Loading…
Cancel
Save