]> git.deb.at Git - deb/packages.git/commitdiff
parse-packages: Fix MD5 sum computation for descriptions
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 17 Jun 2007 16:49:49 +0000 (18:49 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sun, 17 Jun 2007 16:49:49 +0000 (18:49 +0200)
They were missing the final newline, therefor all generated
MD5 sums were bogus.

bin/parse-packages

index d28083afa2a422e9411328084b6d61d59cca4d89..79fb6d948c80d1933d133ebdcf620fcfd587c88e 100755 (executable)
@@ -120,7 +120,7 @@ for my $suite (@SUITES) {
                        $descriptions[$did] = $descr;
                        $descriptions{$descr} = $did;
                }
-               $data{'description-md5'} = Digest::MD5::md5_hex($data{'description'});
+               $data{'description-md5'} = Digest::MD5::md5_hex($data{'description'}, "\n");
                $data{'description'} = $did;
                $packages_descriptions{"$data{'package'} $data{'version'} $data{'architecture'}"} = $did;
                $descriptions_packages{$did} .=