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 <adam@adam-barratt.org.uk>
master
Adam D. Barratt 13 years ago
parent 498c8fe9f6
commit 87ac94dbdb

@ -1787,6 +1787,7 @@ class Britney:
binaries = self.binaries['testing']
# removal of single-arch binary package = "-<package>/<arch>"
# 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 \

Loading…
Cancel
Save