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

(-)ebuild.sh (-5 / +6 lines)
Lines 313-327 Link Here
313
		y=${x%.*}
313
		y=${x%.*}
314
		y=${y##*.}
314
		y=${y##*.}
315
315
316
		myfail="${x} does not exist"
316
		if [[ ${x} == "./"* ]] ; then
317
		if [ "${x:0:2}" = "./" ] ; then
318
			srcdir=""
317
			srcdir=""
318
		elif [[ ${x} == ${DISTDIR}* ]] && \
319
			die "Arguments to unpack() should not begin with \${DISTDIR}."
320
		elif [[ ${x} == "/"* ]] ; then
321
			die "Arguments to unpack() should not be absolute"
319
		else
322
		else
320
			srcdir="${DISTDIR}/"
323
			srcdir="${DISTDIR}/"
321
		fi
324
		fi
322
		[[ ${x} == ${DISTDIR}* ]] && \
325
		[[ ! -s ${srcdir}${x} ]] && die "${x} does not exist"
323
			die "Arguments to unpack() should not begin with \${DISTDIR}."
324
		[ ! -s "${srcdir}${x}" ] && die "$myfail"
325
326
326
		myfail="failure unpacking ${x}"
327
		myfail="failure unpacking ${x}"
327
		case "${x##*.}" in
328
		case "${x##*.}" in

Return to bug 201771