tools/sort_deps: Improve handling of too-large packages

Previously, the code would only check sizes for packages explicitly
listed but packages brought in due to dependency resolution would not
be checked. Now fixed.
This commit is contained in:
Steve McIntyre 2015-07-21 18:46:06 +01:00
parent 08a8e2e3a3
commit 87aff198e3
2 changed files with 9 additions and 0 deletions

4
debian/changelog vendored
View File

@ -8,6 +8,10 @@ debian-cd (3.1.18) UNRELEASED; urgency=medium
* Fix handlinkg of LOGOPNG when we've got "doppelganer" initramfs files
* Add support for debian-edu builds
* Change cpp usage in the Makefile to make error handling more reliable
* tools/sort_deps: Improve handling of too-large packages. Previously,
the code would only check sizes for packages explicitly listed but
packages brought in due to dependency resolution would not be
checked. Now fixed.
[ Didier Raboud ]
* For stretch, swap amd64 and i386 to let the first be the norm, and the

View File

@ -873,6 +873,11 @@ sub add_missing {
my %t = %$pkg;
my $pkgname = $t{"Package"};
if ($packages{$pkgname}{"Size"} > $max_pkg_size) {
msg(2, " $pkgname is too big, mark it as excluded\n");
$excluded{$pkgname} = 'toobig';
}
# Already installed?
if (dep_satisfied($pkg)) {
msg(3, " OR relationship already installed: " . dump_depend($pkg) . "\n");