Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 328869
Collapse All | Expand All

(-)darcs.eclass (-4 / +4 lines)
Lines 19-24 Link Here
19
19
20
# TODO: support for tags, ...
20
# TODO: support for tags, ...
21
21
22
inherit eutils # eshopts_{push,pop}
23
22
# Don't download anything other than the darcs repository
24
# Don't download anything other than the darcs repository
23
SRC_URI=""
25
SRC_URI=""
24
26
Lines 122-128 darcs_src_unpack() { Link Here
122
	[ -z "$EDARCS_LOCALREPO" ] && [ -n "$EDARCS_REPOSITORY" ] \
124
	[ -z "$EDARCS_LOCALREPO" ] && [ -n "$EDARCS_REPOSITORY" ] \
123
		&& EDARCS_LOCALREPO=${EDARCS_REPOSITORY%/} \
125
		&& EDARCS_LOCALREPO=${EDARCS_REPOSITORY%/} \
124
		&& EDARCS_LOCALREPO=${EDARCS_LOCALREPO##*/}
126
		&& EDARCS_LOCALREPO=${EDARCS_LOCALREPO##*/}
125
	local EDARCS_SHOPT
126
127
127
	debug-print-function $FUNCNAME $*
128
	debug-print-function $FUNCNAME $*
128
129
Lines 146-155 darcs_src_unpack() { Link Here
146
	# Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
147
	# Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
147
	mkdir -p "${WORKDIR}/${P}"
148
	mkdir -p "${WORKDIR}/${P}"
148
149
149
	EDARCS_SHOPT=$(shopt -p dotglob)
150
	eshopts_push -s dotglob	# get any dotfiles too.
150
	shopt -s dotglob	# get any dotfiles too.
151
	rsync -rlpgo --exclude="_darcs/"  "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
151
	rsync -rlpgo --exclude="_darcs/"  "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
152
	eval ${EDARCS_SHOPT}    # reset shopt
152
	eshopts_pop
153
153
154
	einfo "Darcs repository contents are now in ${WORKDIR}/${P}"
154
	einfo "Darcs repository contents are now in ${WORKDIR}/${P}"
155
155

Return to bug 328869