From: Jeroen van Wolffelaar Date: Wed, 8 Feb 2006 20:26:18 +0000 (+0000) Subject: Fix regex for contents lines: stray tabs got included X-Git-Tag: switch-to-templates~149 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=9d463c289353df50118033b581bc60bd291c9d01;p=deb%2Fpackages.git Fix regex for contents lines: stray tabs got included --- diff --git a/bin/parse-contents b/bin/parse-contents index b3caaef..50f5ee2 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -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;