diff options
author | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2007-07-18 03:45:11 +0000 |
---|---|---|
committer | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2007-07-18 03:45:11 +0000 |
commit | c6eadadbefe2ec5709e9d31893f79c4ff78754b4 (patch) | |
tree | cb4cbf0758ae091ba8523291419b4f9f44a5236d /darcs-all | |
parent | 8bac478832e0cf9fa7ad1cfc81c08b0b9f13938e (diff) | |
download | haskell-c6eadadbefe2ec5709e9d31893f79c4ff78754b4.tar.gz |
darcs-all: allow relative path for repo in local fs
Diffstat (limited to 'darcs-all')
-rw-r--r-- | darcs-all | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -18,7 +18,12 @@ if ($defaultrepo =~ /:/) { $defaultrepo_lib = "$defaultrepo_base/packages"; } elsif ($defaultrepo =~ /^\//) { - # Local filesystem (assumes a checked-out tree): + # 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): $defaultrepo_base = $defaultrepo; $defaultrepo_lib = "$defaultrepo/libraries"; } |