summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-23 14:38:04 +0000
committerIan Lynagh <igloo@earth.li>2008-07-23 14:38:04 +0000
commitf0d822f40cace4bd692a9e61e88c1d86ae7ebb46 (patch)
tree6b28a8147c51b20c87f33f7cab0d628bcf2789c3 /darcs-all
parent318f217d3169cdcca74d20c5c4b45721c89bc9cd (diff)
downloadhaskell-f0d822f40cace4bd692a9e61e88c1d86ae7ebb46.tar.gz
Remove some redundancy in darcs-all
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all10
1 files changed, 3 insertions, 7 deletions
diff --git a/darcs-all b/darcs-all
index d25a903355..82245fbe2c 100644
--- a/darcs-all
+++ b/darcs-all
@@ -19,13 +19,9 @@ if ($defaultrepo =~ /^...*:/) {
$defaultrepo_base =~ s#/[^/]+/?$##;
$defaultrepo_lib = "$defaultrepo_base/packages";
}
-elsif ($defaultrepo =~ /^\//) {
- # Local filesystem, absolute path (assumes a checked-out tree):
- $defaultrepo_base = $defaultrepo;
- $defaultrepo_lib = "$defaultrepo/libraries";
-}
-elsif ($defaultrepo =~ /^..\//) {
- # Local filesystem, relative path (assumes a checked-out tree):
+elsif ($defaultrepo =~ /^(\.\.)?\//) {
+ # Local filesystem, either absolute or relative path
+ # (assumes a checked-out tree):
$defaultrepo_base = $defaultrepo;
$defaultrepo_lib = "$defaultrepo/libraries";
}