From 94071b16491e90d78605791a316141b58cc3c6fc Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 13 Oct 2011 20:22:33 +0000 Subject: [PATCH] Don't consider intra-source dependencies for smooth updates Signed-off-by: Adam D. Barratt --- britney.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/britney.py b/britney.py index 2f7bd33..351651a 100755 --- a/britney.py +++ b/britney.py @@ -2089,9 +2089,11 @@ class Britney: if arch and parch != arch: continue # do not remove binaries which have been hijacked by other sources 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 not self.options.compatible and suite == 'unstable' 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 \ binaries[parch][0][binary][SECTION] in self.options.smooth_updates): continue