summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2007-11-01 19:24:24 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2007-11-01 19:24:24 +0000
commit2a060ced82d1f34a48d285af7dbdbdbab9669e06 (patch)
tree8734b4f2d8782c697583d702d2ad4788bef97f5d /eclass/darcs.eclass
parentStable on x86, bug #197747 (diff)
downloadgentoo-2-2a060ced82d1f34a48d285af7dbdbdbab9669e06.tar.gz
gentoo-2-2a060ced82d1f34a48d285af7dbdbdbab9669e06.tar.bz2
gentoo-2-2a060ced82d1f34a48d285af7dbdbdbab9669e06.zip
Make the darcs eclass copy using rsync instead of cp like most other SCM
eclasses to exclude the _darcs directory. Patch by Avuton Olrich <avuton@gmail.com>.
Diffstat (limited to 'eclass/darcs.eclass')
-rw-r--r--eclass/darcs.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass
index aaed4111609c..a84d7ece2163 100644
--- a/eclass/darcs.eclass
+++ b/eclass/darcs.eclass
@@ -1,6 +1,6 @@
# Copyright 2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.5 2007/06/17 21:33:57 kolmodin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.6 2007/11/01 19:24:24 kolmodin Exp $
#
# darcs eclass author: Andres Loeh <kosmikus@gentoo.org>
# tla eclass author: <rphillips@gentoo.org>
@@ -142,7 +142,7 @@ darcs_src_unpack() {
EDARCS_SHOPT=$(shopt -p dotglob)
shopt -s dotglob # get any dotfiles too.
- cp -Rf "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
+ rsync -rlpgo --exclude="_darcs/" "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
eval ${EDARCS_SHOPT} # reset shopt
einfo "Darcs repository contents are now in ${WORKDIR}/${P}"