mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-06 23:31:29 +00:00
Make removal of obsolete source packages configurable
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
fe7cc466e1
commit
e5e6d7e5b7
@ -2733,6 +2733,7 @@ class Britney(object):
|
|||||||
# run the auto hinter
|
# run the auto hinter
|
||||||
self.auto_hinter()
|
self.auto_hinter()
|
||||||
|
|
||||||
|
if getattr(self.options, "remove_obsolete", "yes") == "yes":
|
||||||
# obsolete source packages
|
# obsolete source packages
|
||||||
# a package is obsolete if none of the binary packages in testing
|
# a package is obsolete if none of the binary packages in testing
|
||||||
# are built by it
|
# are built by it
|
||||||
@ -2747,7 +2748,7 @@ class Britney(object):
|
|||||||
removals = [ MigrationItem("-%s/%s" % (source, sources[source].version))
|
removals = [ MigrationItem("-%s/%s" % (source, sources[source].version))
|
||||||
for source in sources if source not in used
|
for source in sources if source not in used
|
||||||
]
|
]
|
||||||
if len(removals) > 0:
|
if removals:
|
||||||
self.output_write("Removing obsolete source packages from testing (%d):\n" % (len(removals)))
|
self.output_write("Removing obsolete source packages from testing (%d):\n" % (len(removals)))
|
||||||
self.do_all(actions=removals)
|
self.do_all(actions=removals)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user