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 - 16:26:54 EST


I applied this patch to make it work. The new code does not have the recompression code in it, so it won't corrupt sums either. However, there is that "bug #402482" comment in there that was stripped out, too. Either way should fix my particular problem. The deal is that you have to do check sums on the final version of a file and not on a file that is about to be replaced.

$ diff -up tools/make_disc_trees.pl~ tools/make_disc_trees.pl --- tools/make_disc_trees.pl~ 2007-11-09 14:00:31.979133000 -0800 +++ tools/make_disc_trees.pl 2007-11-16 11:39:22.044281000 -0800 @@ -328,14 +328,21 @@ sub md5_files_for_release {

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

+ if ($filename =~ m/\/.*\/(Packages|Sources)\.gz$/o) {
+ return 0;
+ }

+

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

+ ($md5, $size) = md5_file($_ . ".gz");
+ $filename =~ s/^\.\///;
+ printf RELEASE " %s %8d %s\n", $md5, $size, $filename . ".gz";
} if ($filename =~ m/\/.*\/(Packages|Sources|Release)/o) { - $filename =~ s/^\.\///g;
+ $filename =~ s/^\.\///;
($md5, $size) = md5_file($_); printf RELEASE " %s %8d %s\n", $md5, $size, $filename; }
-- 
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 16:43:15 2007

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


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