X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=0272df55f1746aea8b585afd888b4c8d2e50b4db;hb=99daef874ab8f0c3b1d1ec1888d6bb6d368a4b79;hp=d53ed3630fd58f29fef90bf66ece34611b090819;hpb=50f0cffb836ab1a075339b21322d1b9c39603d28;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index d53ed36..0272df5 100644 --- a/darcs-all +++ b/darcs-all @@ -56,12 +56,10 @@ sub darcsall { my $path; my $tag; - darcs @_; - open IN, "< packages" or die "Can't open packages file"; while () { chomp; - if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/) { + if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; $tag = defined($2) ? $2 : ""; @@ -75,7 +73,7 @@ sub darcsall { message "== $localpath repo not present; skipping"; } } - elsif (! /^$/) { + elsif (! /^(#.*)?$/) { die "Bad line: $_"; } }