aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2007-01-21 20:46:49 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2007-01-21 20:46:49 +0000
commitef09852dd649784f7b5b13b5ac5f11c44b339a8e (patch)
tree7fc84fe337a3f798f73617462cef1acf6c8d66dc
parent9eae9699575ae437e4e061f91c6606ae8299fadd (diff)
downloadpaludis-ef09852dd649784f7b5b13b5ac5f11c44b339a8e.tar.gz
paludis-ef09852dd649784f7b5b13b5ac5f11c44b339a8e.tar.xz
Fix new CVS syncer
-rw-r--r--ebuild/syncers/docvs.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/ebuild/syncers/docvs.in b/ebuild/syncers/docvs.in
index 2562e60..b2821fe 100644
--- a/ebuild/syncers/docvs.in
+++ b/ebuild/syncers/docvs.in
@@ -19,7 +19,9 @@ if [[ "${MODULE}" == "${REMOTE}" ]]; then
fi
REMOTE="${REMOTE%:*}"
-[[ ! -d "${LOCAL}" ]] && mkdir -p "${LOCAL}"
-cd "${LOCAL}" && ( ! ${PSERVER} || cvs -d "${REMOTE}" login ) &&
- cvs -d "${REMOTE}" checkout "${MODULE}"
+LOCAL=${LOCAL%/}
+WORKING="${LOCAL%/*}"
+[[ ! -d "${WORKING}" ]] && mkdir -p "${WORKING}"
+cd "${WORKING}" && ( ! ${PSERVER} || cvs -d "${REMOTE}" login ) &&
+ cvs -d "${REMOTE}" checkout -P -d "${LOCAL##*/}" "${MODULE}"