mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 22:11:30 +00:00
Don't consider intra-source dependencies for smooth updates
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
d10630ff56
commit
8268ab61a7
@ -2089,9 +2089,11 @@ class Britney:
|
|||||||
if arch and parch != arch: continue
|
if arch and parch != arch: continue
|
||||||
# do not remove binaries which have been hijacked by other sources
|
# do not remove binaries which have been hijacked by other sources
|
||||||
if binaries[parch][0][binary][SOURCE] != pkg_name: continue
|
if binaries[parch][0][binary][SOURCE] != pkg_name: continue
|
||||||
|
rdeps = binaries[parch][0][binary][RDEPENDS]
|
||||||
# if a smooth update is possible for the package, skip it
|
# if a smooth update is possible for the package, skip it
|
||||||
if not self.options.compatible and suite == 'unstable' and \
|
if not self.options.compatible and suite == 'unstable' and \
|
||||||
binary not in self.binaries[suite][parch][0] and \
|
binary not in self.binaries[suite][parch][0] and \
|
||||||
|
len([x for x in rdeps if x not in [y.split("/")[0] for y in source[BINARIES]]]) > 0 and \
|
||||||
('ALL' in self.options.smooth_updates or \
|
('ALL' in self.options.smooth_updates or \
|
||||||
binaries[parch][0][binary][SECTION] in self.options.smooth_updates):
|
binaries[parch][0][binary][SECTION] in self.options.smooth_updates):
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user