Fix darcs-all get
authorIan Lynagh <igloo@earth.li>
Thu, 7 Aug 2008 20:32:58 +0000 (20:32 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 7 Aug 2008 20:32:58 +0000 (20:32 +0000)
darcs-all

index 0272df5..6c8b406 100644 (file)
--- a/darcs-all
+++ b/darcs-all
@@ -98,7 +98,7 @@ sub darcsget {
     open IN, "< packages" or die "Can't open packages file";
     while (<IN>) {
         chomp;
-        if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/) {
+        if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) {
             $localpath = $1;
             $tag = defined($2) ? $2 : "";
             $remotepath = $3;
@@ -119,7 +119,7 @@ sub darcsget {
                 }
             }
         }
-        elsif (! /^$/) {
+        elsif (! /^(#.*)?$/) {
             die "Bad line: $_";
         }
     }