From 3326f948dbd8644542d08755ae22d0734a9629d3 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Sun, 6 Sep 2015 15:22:52 +0000 Subject: [PATCH] Cleanup old binaries even when they are still in unstable Old binaries in testing are usually old versions of libraries that where smooth-updated. These should only be kept in testing as long as they are needed to install other packages in testing. When they are no longer needed, they can be removed, even if the old library is still in unstable (where it might be needed for reverse dependencies which are not in testing). Signed-off-by: Ivo De Decker --- britney_util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/britney_util.py b/britney_util.py index 346bac3..99d9760 100644 --- a/britney_util.py +++ b/britney_util.py @@ -569,8 +569,7 @@ def old_libraries(sources, packages, same_source=same_source): for arch in testing: for pkg_name in testing[arch][0]: pkg = testing[arch][0][pkg_name] - if pkg_name not in unstable[arch][0] and \ - not same_source(sources_t[pkg[SOURCE]][VERSION], pkg[SOURCEVER]): + if not same_source(sources_t[pkg[SOURCE]][VERSION], pkg[SOURCEVER]): migration = "-" + "/".join((pkg_name, arch, pkg[SOURCEVER])) removals.append(MigrationItem(migration)) return removals