summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-29 13:00:19 +0000
committerIan Lynagh <igloo@earth.li>2008-08-29 13:00:19 +0000
commit6cf43d8eccfcf8bfad7ce1c35a4f174a545c3c2a (patch)
tree5af8f2667bcc2cad5be8eab1a4172fefa400e251
parentfb0a3438b4a3c3df99cbe35baab7da97150d41cd (diff)
downloadhaskell-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-all10
1 files changed, 8 insertions, 2 deletions
diff --git a/push-all b/push-all
index 8e9f9f314b..ef4dbc8d53 100644
--- a/push-all
+++ b/push-all
@@ -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") {