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 <ivodd@debian.org>
master
Ivo De Decker 9 years ago
parent 88bf620896
commit 3326f948db

@ -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

Loading…
Cancel
Save