diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-12-20 15:43:14 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-12-20 15:43:14 +0000 |
commit | 62ed2829b8f24264b9c01e77fb7bd1b23abf0b9c (patch) | |
tree | 705b2b406e3bb63e010ea1bfd81372dea99e7600 /eclass | |
parent | Sparc stable, Bug #201896 fixing security violation (setuid/setgid). (diff) | |
download | gentoo-2-62ed2829b8f24264b9c01e77fb7bd1b23abf0b9c.tar.gz gentoo-2-62ed2829b8f24264b9c01e77fb7bd1b23abf0b9c.tar.bz2 gentoo-2-62ed2829b8f24264b9c01e77fb7bd1b23abf0b9c.zip |
Fix mozextension.eclass wrt bug #202847, patch by Nirbheek Chauhan <nirbheek dot chauhan at gmail dot com>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mozextension.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/mozextension.eclass b/eclass/mozextension.eclass index 378070a9c0b5..9fb172bc4b96 100644 --- a/eclass/mozextension.eclass +++ b/eclass/mozextension.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.3 2007/03/12 11:57:49 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.4 2007/12/20 15:43:14 armin76 Exp $ # # mozextention.eclass: installing firefox extensions and language packs @@ -17,9 +17,9 @@ xpi_unpack() { for xpi in "$@"; do einfo "Unpacking ${xpi} to ${PWD}" - xpiname=${xpi%.*} + xpiname=$(basename ${xpi%.*}) - if [[ "${xpi:0:2}" != "./" ]] ; then + if [[ "${xpi:0:2}" != "./" ]] && [[ "${xpi:0:1}" != "/" ]] ; then srcdir="${DISTDIR}/" fi |