]> git.deb.at Git - deb/packages.git/commitdiff
Fix regex for contents lines: stray tabs got included
authorJeroen van Wolffelaar <jeroen@wolffelaar.nl>
Wed, 8 Feb 2006 20:26:18 +0000 (20:26 +0000)
committerJeroen van Wolffelaar <jeroen@wolffelaar.nl>
Wed, 8 Feb 2006 20:26:18 +0000 (20:26 +0000)
bin/parse-contents

index b3caaefc186be15e068c33df0c37b0f08db8d58e..50f5ee2982d9700e5ae5fae262770025e5b8ea1b 100755 (executable)
@@ -56,7 +56,7 @@ for my $archive (@archives) { for my $suite (@suites) { for my $arch (@archs) {
                my %data = ();
                chomp;
                print "Doing line $.\n" if $. % 10000 == 0;
-               /^(.+)\s+(\S+)$/;
+               /^(.+?)\s+(\S+)$/o;
                my ($file, $value) = ($1, $2);
                $value =~ s#[^,/]+/##og;
                my @packages = split /,/, $value;