summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-09 02:08:20 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-09 02:08:20 +0000
commite4080cff5669904816ee310a9f0bb1196e7569b1 (patch)
treec27d0e815d10b15bb0a502cc0c8c272a8243681e /bin/ebuild.sh
parentUse os.path.realpath instead of portage.abssymlink to resolve /etc/make.profi... (diff)
downloadportage-multirepo-e4080cff5669904816ee310a9f0bb1196e7569b1.tar.gz
portage-multirepo-e4080cff5669904816ee310a9f0bb1196e7569b1.tar.bz2
portage-multirepo-e4080cff5669904816ee310a9f0bb1196e7569b1.zip
slightly easier test to read for DISTDR/unpack check
svn path=/main/trunk/; revision=3335
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b3f34d6e..5f7cd431 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -365,7 +365,7 @@ unpack() {
else
srcdir="${DISTDIR}/"
fi
- [ "${x}" != "${x/${DISTDIR}}" ] && \
+ [[ ${x} == ${DISTDIR}* ]] && \
die "Arguments to unpack() should not begin with \${DISTDIR}."
[ ! -s "${srcdir}${x}" ] && die "$myfail"