mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 10:31:30 +00:00
Make removal of obsolete source packages configurable, and disable it for Ubuntu for now.
This commit is contained in:
parent
cacf326907
commit
e8beb5f5e0
@ -57,3 +57,5 @@ HINTS_SATBRITNEY = easy
|
|||||||
# naming a non-existent section will effectively disable new smooth
|
# naming a non-existent section will effectively disable new smooth
|
||||||
# updates but still allow removals to occur
|
# updates but still allow removals to occur
|
||||||
SMOOTH_UPDATES = badgers
|
SMOOTH_UPDATES = badgers
|
||||||
|
|
||||||
|
REMOVE_OBSOLETE = no
|
||||||
|
17
britney.py
17
britney.py
@ -2430,14 +2430,15 @@ class Britney(object):
|
|||||||
self.auto_hinter()
|
self.auto_hinter()
|
||||||
|
|
||||||
# obsolete source packages
|
# obsolete source packages
|
||||||
self.__log("> Removing obsolete source packages from testing", type="I")
|
if getattr(self.options, "remove_obsolete", "yes") == "yes":
|
||||||
removals = []
|
self.__log("> Removing obsolete source packages from testing", type="I")
|
||||||
sources = self.sources['testing']
|
removals = []
|
||||||
removals = [ HintItem("-%s/%s" % (source, sources[source][VERSION])) for \
|
sources = self.sources['testing']
|
||||||
source in sources if len(sources[source][BINARIES]) == 0 ]
|
removals = [ HintItem("-%s/%s" % (source, sources[source][VERSION])) for \
|
||||||
if len(removals) > 0:
|
source in sources if len(sources[source][BINARIES]) == 0 ]
|
||||||
self.output_write("Removing obsolete source packages from testing (%d):\n" % (len(removals)))
|
if len(removals) > 0:
|
||||||
self.do_all(actions=removals)
|
self.output_write("Removing obsolete source packages from testing (%d):\n" % (len(removals)))
|
||||||
|
self.do_all(actions=removals)
|
||||||
|
|
||||||
# smooth updates
|
# smooth updates
|
||||||
if len(self.options.smooth_updates) > 0:
|
if len(self.options.smooth_updates) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user