]> git.deb.at Git - deb/packages.git/blobdiff - bin/parse-packages
pdo.fr.po: 10t, 7f, 14u
[deb/packages.git] / bin / parse-packages
index 64c690de5dff0fc93cbbcd5df7be8d0b9513b5f7..2e713c6fbd93a596f19f853148ba1af21efcaeff 100755 (executable)
@@ -2,9 +2,9 @@
 # Convert Packages.gz files into Sleepycat db files for efficient usage of
 # data
 #
-# $Id$
-#
 # Copyright (C) 2006  Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
+# Copyright (C) 2006-2007 Frank Lichtenheld <frank@lichtenheld.de>
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
 use warnings;
@@ -87,9 +87,9 @@ for my $suite (@SUITES) {
                }
                # Skip double package
                next if exists($packages_all_db{"$data{'package'} $data{'architecture'} $data{'version'}"});
-               # Skip arch:all for amd64 & gnuab, any non-redundancy is
+               # Skip arch:all for amd64 & debports, any non-redundancy is
                # usually a bug anyway
-               next if ($archive eq 'amd64' or $archive eq 'gnuab')
+               next if ($archive eq 'amd64' or $archive eq 'debports')
                    and $data{architecture} eq 'all';
 
                if ($data{'provides'}) {
@@ -157,7 +157,7 @@ for my $suite (@SUITES) {
                $subsections{$suite}{$subsection}++;
                $priorities{$suite}{$data{priority}}++;
                my $pkgitem = "$archive $suite $data{'architecture'} ".
-                       "$section $subsection $data{'priority'} $data{'version'} $sdescr\0";
+                       "$section $subsection $data{'priority'} $data{'version'} $data{'description-md5'} $sdescr\0";
                my $previtem = ($packages_small{$data{'package'}}{$suite}{$data{'architecture'}}
                    ||= $pkgitem);
                $packages_small{$data{'package'}}{$suite}{$data{'architecture'}} = $pkgitem
@@ -303,7 +303,7 @@ for (my $i=1; $i<= $#descriptions; $i++) {
                }
            }
            if ($tags) {
-               foreach my $t (split /, /, $tags) {
+               foreach my $t (split m/, /, $tags) {
                    if ($doc->add_term($t)) {
                        warn "can't add term $t: $!\n";
                    }