Make removal of obsolete source packages configurable, and disable it for Ubuntu for now.

This commit is contained in:
Colin Watson 2012-10-22 13:55:11 +01:00
parent cacf326907
commit e8beb5f5e0
2 changed files with 11 additions and 8 deletions

View File

@ -57,3 +57,5 @@ HINTS_SATBRITNEY = easy
# naming a non-existent section will effectively disable new smooth
# updates but still allow removals to occur
SMOOTH_UPDATES = badgers
REMOVE_OBSOLETE = no

View File

@ -2430,6 +2430,7 @@ class Britney(object):
self.auto_hinter()
# obsolete source packages
if getattr(self.options, "remove_obsolete", "yes") == "yes":
self.__log("> Removing obsolete source packages from testing", type="I")
removals = []
sources = self.sources['testing']