diff options
author | Ian Lynagh <igloo@earth.li> | 2008-07-23 14:38:04 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-07-23 14:38:04 +0000 |
commit | f0d822f40cace4bd692a9e61e88c1d86ae7ebb46 (patch) | |
tree | 6b28a8147c51b20c87f33f7cab0d628bcf2789c3 /darcs-all | |
parent | 318f217d3169cdcca74d20c5c4b45721c89bc9cd (diff) | |
download | haskell-f0d822f40cace4bd692a9e61e88c1d86ae7ebb46.tar.gz |
Remove some redundancy in darcs-all
Diffstat (limited to 'darcs-all')
-rw-r--r-- | darcs-all | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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"; } |