From 87ac94dbdb1f37c64f378395c08a0217b5355ccb Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sun, 6 Nov 2011 13:18:52 +0000 Subject: [PATCH] Make it clearer that single binary removal is an implementation detail The feature is used to remove binaries left by smooth-updates and is not exposed as an available hint type. Signed-off-by: Adam D. Barratt --- britney.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 7952b05..13a5ccd 100755 --- a/britney.py +++ b/britney.py @@ -1787,6 +1787,7 @@ class Britney: binaries = self.binaries['testing'] # removal of single-arch binary package = "-/" + # only used for cleaning up after smooth-updates if pkg[0] == "-" and "/" in pkg: pkg_name, arch = pkg.split("/") pkg_name = pkg_name[1:] @@ -1887,7 +1888,8 @@ class Britney: # the package didn't exist, so we mark it as to-be-removed in case of undo undo['sources']['-' + pkg_name] = True - # single binary removal + # single binary removal; used for clearing up after smooth + # updates but not supported as a manual hint elif pkg_name in binaries[arch][0]: undo['binaries'][pkg_name + "/" + arch] = binaries[arch][0][pkg_name] affected.extend( [ (x, arch) for x in \