Make fast_sums ignore md5sums of files not in the pool directory.

This commit is contained in:
Santiago Garcia Mantinan 2004-05-09 23:12:24 +00:00
parent f55bb17b13
commit 3504cff536
2 changed files with 8 additions and 6 deletions

2
debian/changelog vendored
View File

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

View File

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