mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-21 07:21:30 +00:00
Adjust maybe-NBS check again, this time to check for newer versions of other binaries from the same source.
This commit is contained in:
parent
f81e685f99
commit
9dbef8c864
@ -1514,14 +1514,12 @@ class Britney(object):
|
|||||||
if oodtxt: oodtxt = oodtxt + "; "
|
if oodtxt: oodtxt = oodtxt + "; "
|
||||||
maybe_nbs = ""
|
maybe_nbs = ""
|
||||||
if not source_t or same_source(source_t[VERSION], v):
|
if not source_t or same_source(source_t[VERSION], v):
|
||||||
for pkg in oodbins[v]:
|
|
||||||
maxver = None
|
maxver = None
|
||||||
for other_arch in self.options.architectures:
|
for pkg in sorted(x.split("/")[0] for x in source_u[BINARIES] if x.endswith("/"+arch)):
|
||||||
if pkg not in self.binaries[suite][other_arch][0]: continue
|
pkgv = self.binaries[suite][arch][0][pkg][VERSION]
|
||||||
pkgv = self.binaries[suite][other_arch][0][pkg][VERSION]
|
|
||||||
if maxver is None or apt_pkg.version_compare(pkgv, maxver) > 0:
|
if maxver is None or apt_pkg.version_compare(pkgv, maxver) > 0:
|
||||||
maxver = pkgv
|
maxver = pkgv
|
||||||
if maxver == v:
|
if maxver is not None and apt_pkg.version_compare(maxver, v) > 0:
|
||||||
maybe_nbs = "; NBS?"
|
maybe_nbs = "; NBS?"
|
||||||
break
|
break
|
||||||
oodtxt = oodtxt + "%s (from <a href=\"https://launchpad.net/ubuntu/+source/" \
|
oodtxt = oodtxt + "%s (from <a href=\"https://launchpad.net/ubuntu/+source/" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user