Commit 5e060e66 authored by kili's avatar kili Committed by Ian Lynagh

Skip missing directories for real.

While here, make the code a little bit more readable.
parent 06f69812
......@@ -310,20 +310,14 @@ sub scmall {
if (-d "$localpath/.git") {
die "Found both _darcs and .git in $localpath";
}
else {
$scm = "darcs";
}
}
else {
if (-d "$localpath/.git") {
$scm = "git";
}
elsif ($tag eq "") {
die "Required repo $localpath is missing";
}
else {
message "== $localpath repo not present; skipping";
}
$scm = "darcs";
} elsif (-d "$localpath/.git") {
$scm = "git";
} elsif ($tag eq "") {
die "Required repo $localpath is missing";
} else {
message "== $localpath repo not present; skipping";
next;
}
# Work out the arguments we should give to the SCM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment