X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=632d54dffc25f1d91e7dc54c9a43109d721aee2e;hb=28c556a5e0ed5c2687f19ec6ef8853b79ad65518;hp=1ab395b06ffefa0141efd5af0e57d44a8059108e;hpb=cb5e627211db27c91450b897734d79f1fcd43a16;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index 1ab395b..632d54d 100644 --- a/darcs-all +++ b/darcs-all @@ -8,10 +8,10 @@ top_dirs="nofib testsuite" # based on where this GHC repo came from. defaultrepo=`cat _darcs/prefs/defaultrepo` case $defaultrepo in - http://*) default_repo_root=`echo $defaultrepo | sed 's!/ghc$!!'` - default_lib_repo_root=$default_repo_root/packages;; - /*) default_repo_root=$defaultrepo - default_lib_repo_root=$default_repo_root/libraries;; + http://* | *@*:*) + defaultrepo_lib=`echo $defaultrepo | sed 's!/ghc$!!'`/packages;; + /*) + defaultrepo_lib=$defaultrepo/libraries;; esac quiet=NO @@ -52,12 +52,6 @@ darcsget() *) echo "warning: adding --partial, to override use --complete" esac - repo_root=`cat _darcs/prefs/defaultrepo` - case $repo_root in - /*) lib_repos=$repo_root/libraries;; - *) lib_repos=$default_lib_repo_root;; - esac - cd libraries if test "$extra" = "YES"; then @@ -70,7 +64,7 @@ darcsget() if test -d $pkg; then echo "warning: $pkg already present; omitting" else - repo=$lib_repos/$pkg + repo=$defaultrepo_lib/$pkg message "== running darcs get --partial $* $repo" darcs get --partial $* $repo fi