From 80f33830278ab14b1505df9974488d81d363529e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 8 May 2006 17:55:58 +0000 Subject: Give a less confusing error message when unpack() arguments begin with ${DISTDIR}. Thanks to Flameeyes for reporting. svn path=/main/trunk/; revision=3333 --- bin/ebuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 70fffc1ba..b3f34d6ea 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -365,6 +365,8 @@ unpack() { else srcdir="${DISTDIR}/" fi + [ "${x}" != "${x/${DISTDIR}}" ] && \ + die "Arguments to unpack() should not begin with \${DISTDIR}." [ ! -s "${srcdir}${x}" ] && die "$myfail" myfail="failure unpacking ${x}" -- cgit v1.2.3-1-g7c22