From: Frank Lichtenheld Date: Sat, 16 Jun 2007 20:16:45 +0000 (+0200) Subject: parse-packages: Save the md5 checksum of the description X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=7b6775be780fd18cf1c338c27bddb135d7635b22;p=deb%2Fpackages.git parse-packages: Save the md5 checksum of the description This should enable us later to retrieve the translated descriptions --- diff --git a/bin/parse-packages b/bin/parse-packages index fe61ca2..d28083a 100755 --- a/bin/parse-packages +++ b/bin/parse-packages @@ -32,6 +32,7 @@ my $MAX_PACKAGE_POSTFIXES = 100; use DB_File; use Storable; use File::Path; +use Digest::MD5; use Deb::Versions; use Lingua::Stem v0.82; use Search::Xapian; @@ -119,6 +120,7 @@ for my $suite (@SUITES) { $descriptions[$did] = $descr; $descriptions{$descr} = $did; } + $data{'description-md5'} = Digest::MD5::md5_hex($data{'description'}); $data{'description'} = $did; $packages_descriptions{"$data{'package'} $data{'version'} $data{'architecture'}"} = $did; $descriptions_packages{$did} .=