mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-17 13:31:29 +00:00
Remove broken depends code in _should_upgrade_src
The code that was supposed to check uninstallability of existing binaries was broken: - it only checked arch: all on nobreakall archs, not arch any - it checked if the new binary was in testing (this never happens) - it doesn't work when binaries from both unstable and tpu are needed Note that _excuse_unsat_deps() now handles nobreakall correctly.
This commit is contained in:
parent
ccd30f96fd
commit
4cbb691dfe
@ -394,19 +394,15 @@ class ExcuseFinder(object):
|
|||||||
if is_valid:
|
if is_valid:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
binary_u = all_binaries[pkg_id]
|
# TODO actually reject items that are not valid based on the
|
||||||
# There is an issue with the package. If it is arch:any, then _excuse_unsat_deps will have
|
# result of _excuse_unsat_deps. However:
|
||||||
# handled everything for us correctly. However, arch:all have some special-casing IRT
|
# - the calculation from _excuse_unsat_deps isn't correct when
|
||||||
# nobreakall that we deal with ourselves here.
|
# multiple source suites are required:
|
||||||
if binary_u.architecture == 'all' and pkg_id.architecture in self.options.nobreakall_arches:
|
# * bin in unstable needs bin from (t)pu
|
||||||
# We sometimes forgive uninstallable arch:all packages on nobreakall architectures
|
# * bin in (t)pu needs bin from unstable
|
||||||
# (e.g. we sometimes force-hint in arch:all packages that are only installable on
|
# - when a binary is already uninstallable in testing, a newer
|
||||||
# on a subset of all nobreak architectures).
|
# version of that binary is allowed to migrate, even if it is
|
||||||
# This forgivness is only done if the package is already in testing AND it is broken
|
# uninstallable
|
||||||
# in testing on this architecture already. Anything else would be a regression
|
|
||||||
if target_suite.is_pkg_in_the_suite(pkg_id) and not target_suite.is_installable(pkg_id):
|
|
||||||
# It is a regression.
|
|
||||||
excuse.policy_verdict = PolicyVerdict.REJECTED_PERMANENTLY
|
|
||||||
|
|
||||||
# at this point, we check the status of the builds on all the supported architectures
|
# at this point, we check the status of the builds on all the supported architectures
|
||||||
# to catch the out-of-date ones
|
# to catch the out-of-date ones
|
||||||
|
Loading…
x
Reference in New Issue
Block a user