mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-05 15:41:31 +00:00
britney: Don't show "fake" packages in excuses
They are implementation details and should not appear in the excuses. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
b34ac3bdd9
commit
045ce2bf7b
11
britney.py
11
britney.py
@ -1259,8 +1259,12 @@ class Britney(object):
|
|||||||
the object attribute excuses.
|
the object attribute excuses.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# retrieve the source packages for testing (if available) and suite
|
|
||||||
source_u = self.sources[suite][src]
|
source_u = self.sources[suite][src]
|
||||||
|
if source_u.is_fakesrc:
|
||||||
|
# it is a fake package created to satisfy Britney implementation details; silently ignore it
|
||||||
|
return False
|
||||||
|
|
||||||
|
# retrieve the source packages for testing (if available) and suite
|
||||||
if src in self.sources['testing']:
|
if src in self.sources['testing']:
|
||||||
source_t = self.sources['testing'][src]
|
source_t = self.sources['testing'][src]
|
||||||
# if testing and unstable have the same version, then this is a candidate for binary-NMUs only
|
# if testing and unstable have the same version, then this is a candidate for binary-NMUs only
|
||||||
@ -1291,11 +1295,6 @@ class Britney(object):
|
|||||||
# the starting point is that we will update the candidate
|
# the starting point is that we will update the candidate
|
||||||
excuse.is_valid = True
|
excuse.is_valid = True
|
||||||
|
|
||||||
# check if the source package really exists or if it is a fake one
|
|
||||||
if source_u.is_fakesrc:
|
|
||||||
excuse.addhtml("%s source package doesn't exist" % (src))
|
|
||||||
excuse.is_valid = False
|
|
||||||
|
|
||||||
# if there is a `remove' hint and the requested version is the same as the
|
# if there is a `remove' hint and the requested version is the same as the
|
||||||
# version in testing, then stop here and return False
|
# version in testing, then stop here and return False
|
||||||
for hint in self.hints.search('remove', package=src):
|
for hint in self.hints.search('remove', package=src):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user