summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-09-02 16:32:28 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-09-02 16:39:03 +0200
commita137827a3269db40572cea49d3e1a104b5ef9c71 (patch)
treee1af8b2c3f9e0455b3219baad5b446b9dbcc6217 /sync-all
parent9e2e84e01cbf2bc1da1fc7260709f63687206d76 (diff)
downloadhaskell-a137827a3269db40572cea49d3e1a104b5ef9c71.tar.gz
Extend `packages` by 4th column for upstream repo
By keeping the repository url in the `packages` file scripts such as source:ghc/sync-all can pick it up. Moreover, it's easier to automatically validate for correctness than the wiki:Repositories/Upstream page.
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all3
1 files changed, 2 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index 85a697af52..f37c37996c 100755
--- a/sync-all
+++ b/sync-all
@@ -50,11 +50,12 @@ sub parsePackages {
foreach (@repos) {
chomp;
$lineNum++;
- if (/^([^# ]+) +([^ ]+) +([^ ]+)$/) {
+ if (/^([^# ]+) +([^ ]+) +([^ ]+) +([^ ]+)$/) {
my %line;
$line{"localpath"} = $1;
$line{"tag"} = $2;
$line{"remotepath"} = $3;
+ $line{"upstreamurl"}= $4;
push @packages, \%line;
$tags{$2} = 0;