mirror of
https://salsa.debian.org/images-team/debian-cd.git
synced 2024-11-24 15:19:51 -01:00
Special-case builds of source-only discs: if we think we've overflowed
the disc size, try to carry on for a few more packages to get closer to actually filling the disc. Closes: #613751.
This commit is contained in:
parent
317536973a
commit
e12ab9e518
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -11,7 +11,11 @@ debian-cd (3.1.6) UNRELEASED; urgency=low
|
||||
squeeze release builds.
|
||||
* Add disk size definitions for 1/2/4/8 GB USB sticks.
|
||||
* Extend the size-override code to allow to override an individual disc
|
||||
in the set (e.g. to make the first DVD fit on a 4GB USB stick).
|
||||
in the set (e.g. to make the first DVD fit on a 4GB USB
|
||||
stick). Closes: #612074
|
||||
* Special-case builds of source-only discs: if we think we've
|
||||
overflowed the disc size, try to carry on for a few more packages
|
||||
to get closer to actually filling the disc. Closes: #613751.
|
||||
|
||||
[ Otavio Salvador ]
|
||||
* Add btrfs-tools on required packages by installer. Closes: #612007.
|
||||
|
@ -292,12 +292,20 @@ while (defined (my $pkg = <INLIST>)) {
|
||||
# Put this package first on the next disc
|
||||
push (@overflowlist, $pkg);
|
||||
}
|
||||
finish_disc($cddir, "");
|
||||
|
||||
# And reset, to start the next disc
|
||||
$size = 0;
|
||||
$disknum++;
|
||||
undef(@pkgs_added);
|
||||
# Special-case for source-only discs where we don't care
|
||||
# about the ordering. If we're doing a source-only build
|
||||
# and we've overflowed, allow us to carry on down the list
|
||||
# for a while to fill more space. Stop when we've skipped
|
||||
# 5 packages (arbitrary choice of number!) #613751
|
||||
if (!($archlist eq "source") or (scalar @overflowlist >= 5)) {
|
||||
finish_disc($cddir, "");
|
||||
# And reset, to start the next disc
|
||||
$size = 0;
|
||||
$disknum++;
|
||||
undef(@pkgs_added);
|
||||
} else {
|
||||
print LOG "SOURCE DISC: continuing on to see if anything else will fit, " . scalar @overflowlist . " packages on the overflow list at this point\n";
|
||||
}
|
||||
} else {
|
||||
$pkgs_this_cd++;
|
||||
$pkgs_done++;
|
||||
|
Loading…
Reference in New Issue
Block a user