mirror of
https://salsa.debian.org/images-team/debian-cd.git
synced 2024-11-24 15:19:51 -01:00
Make fast_sums ignore md5sums of files not in the pool directory.
This commit is contained in:
parent
f55bb17b13
commit
3504cff536
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -60,6 +60,8 @@ debian-cd (2.2.18) UNRELEASED; urgency=low
|
||||
- Add support for booting 2.6 as well as 2.4 to the first i386 cd.
|
||||
- Add dirty temporal workaround for saving space on netinst images.
|
||||
This should be fixed in a proper way when time permits.
|
||||
- Make fast_sums ignore md5sums of files not in the pool directory.
|
||||
Closes: #247889
|
||||
* Bdale Garbee
|
||||
- shorten the command line in post-boot-hppa for sarge, as palo can't
|
||||
handle a command line longer than 127 chars right now
|
||||
|
@ -12,7 +12,8 @@
|
||||
use strict;
|
||||
use Digest::MD5;
|
||||
|
||||
# load up all the md5sums we need
|
||||
# We load the md5sums of all the files in the pool dir, we don't want to use
|
||||
# the others because the files on the cds can be different (like README.html)
|
||||
my %md5 ;
|
||||
my $BDIR = shift @ARGV ;
|
||||
|
||||
@ -20,12 +21,11 @@ foreach my $sumsfile ($BDIR . "/indices/md5sums", $BDIR . "/indices-non-US/md5su
|
||||
if (open(MD5SUMS, $sumsfile)) {
|
||||
while (<MD5SUMS>) {
|
||||
chomp;
|
||||
next if /Packages/ ;
|
||||
next if /Sources/ ;
|
||||
next if /Release/ ;
|
||||
my ( $sum, $name ) = split(' ') ;
|
||||
# printf "[%s] [%s]\n", $sum, $name ;
|
||||
$md5{$name} = $sum ;
|
||||
if ($name =~ /^pool/) {
|
||||
# printf "[%s] [%s]\n", $sum, $name ;
|
||||
$md5{$name} = $sum ;
|
||||
}
|
||||
}
|
||||
close(MD5SUMS);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user