diff options
author | Ian Lynagh <igloo@earth.li> | 2008-08-29 13:00:19 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-08-29 13:00:19 +0000 |
commit | 6cf43d8eccfcf8bfad7ce1c35a4f174a545c3c2a (patch) | |
tree | 5af8f2667bcc2cad5be8eab1a4172fefa400e251 | |
parent | fb0a3438b4a3c3df99cbe35baab7da97150d41cd (diff) | |
download | haskell-6cf43d8eccfcf8bfad7ce1c35a4f174a545c3c2a.tar.gz |
push-all needs to skip http:// repos, as we don't know how to push to them
Alternatives would be to have a GHC haddock repo (which I believe David
is keen to avoid), or to put the SSH URL in the packages file too (which
would probably mean moving to a more structured file format).
-rw-r--r-- | push-all | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -45,7 +45,7 @@ sub pushall { @repos = <IN>; close IN; - foreach (@repos) { + REPO: foreach (@repos) { chomp; if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; @@ -56,7 +56,13 @@ sub pushall { $path = "$reporoot/$localpath"; } else { - $path = "$reporoot/$remotepath"; + if ($remotepath =~ /^http:/) { + message "Ignoring $localpath; remote is http URL"; + next REPO; + } + else { + $path = "$reporoot/$remotepath"; + } } if (-d "$localpath/_darcs") { |