Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: broken $MIRROR/dists/$CODENAME/Release file

From: Bruce Korb <bruce.korb(at)gmail.com>
Date: Fri Nov 16 2007 - 14:23:23 EST


I've found the problem in debian-cd.
It is in the make_disc_trees.pl.

sub md5_files_for_release {

        my ($md5, $size, $filename);

        $filename = $File::Find::name;

	# Recompress the Packages and Sources files; workaround for bug
	# #402482
	if ($filename =~ m/\/.*\/(Packages|Sources)$/o) {
		system("gzip -9c < $_ >$_.gz");

}
if ($filename =~ m/\/.*\/(Packages|Sources|Release)/o) { $filename =~ s/^\.\///g; ($md5, $size) = md5_file($_); printf RELEASE " %s %8d %s\n", $md5, $size, $filename;
}

}

"Packages" gets re-compressed after it has already been added to the MD3Sum section of the Release file:

MD5Sum:
 8f4848988b542d4bcae9519f7dd1fd84 149981 main/binary-i386/Packages.gz  31778b10ad5f2d3af64595d1d891a8d0 80 main/binary-i386/Release

Screwed. If you're going to re-compress, then you've got to suppress the emission of the broken entry. Just ignore ``/(Packages|Sources).gz$'' ??

-- 
To UNSUBSCRIBE, email to debian-cd-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Nov 16 14:39:42 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 06:56:24 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library