]> git.deb.at Git - deb/packages.git/blobdiff - bin/parse-contents
Fix regex for contents lines: stray tabs got included
[deb/packages.git] / 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;