diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-01-12 16:02:24 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-01-12 16:02:24 +0000 |
commit | 28b45c520a106a464595540b044e8af1cc71b5c8 (patch) | |
tree | fca29b50c34dab9ddf9afac154fc589301e247eb /sync-all | |
parent | c5dbacbac11791581ef005fa91cd41a4a90c25fc (diff) | |
download | haskell-28b45c520a106a464595540b044e8af1cc71b5c8.tar.gz |
update to work with current packages file format
Diffstat (limited to 'sync-all')
-rw-r--r-- | sync-all | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -39,7 +39,7 @@ my $local_repo_unnecessary = 0; # Always define the empty tag so that we fetch the /required/ packages my %tags; -$tags{""} = 1; +$tags{"-"} = 1; sub message { if ($verbose >= 2) { @@ -80,6 +80,7 @@ sub scmall { my $tag; my $remotepath; my $scm; + my $upstream; my $path; my $wd_before = getcwd; @@ -89,11 +90,12 @@ sub scmall { open IN, "< packages" or die "Can't open packages file"; while (<IN>) { chomp; - if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { + if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+) +([^ ]+)$/) { $localpath = $1; $tag = defined($2) ? $2 : ""; $remotepath = $3; $scm = $4; + $upstream = $5; # Check the SCM is OK as early as possible die "Unknown SCM: $scm" if (($scm ne "darcs") and ($scm ne "git")); |