summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-05 03:20:42 +0000
committerMike Frysinger <vapier@gentoo.org>2012-04-05 03:20:42 +0000
commit04c8a102e46751a507d550948e939fe8c5cf703d (patch)
treea7d28c0ac266da1c6122a05604e2a10b58ffa7e3 /eclass/unpacker.eclass
parentFix quote handling for global data (diff)
downloadhistorical-04c8a102e46751a507d550948e939fe8c5cf703d.tar.gz
historical-04c8a102e46751a507d550948e939fe8c5cf703d.tar.bz2
historical-04c8a102e46751a507d550948e939fe8c5cf703d.zip
fix by Christoph Junghans to decompress files into $PWD #408801
Diffstat (limited to 'eclass/unpacker.eclass')
-rw-r--r--eclass/unpacker.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index f9906cf12b80..5b1d7ea1856d 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.5 2012/02/13 20:53:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.6 2012/04/05 03:20:42 vapier Exp $
# @ECLASS: unpacker.eclass
# @MAINTAINER:
@@ -311,7 +311,9 @@ _unpacker() {
[[ ${arch} != unpack_* ]] && unpack_banner "${a}"
if [[ -z ${arch} ]] ; then
- ${comp} "${a}" > "${a%.*}"
+ # Need to decompress the file into $PWD #408801
+ local _a=${a%.*}
+ ${comp} "${a}" > "${_a##*/}"
elif [[ -z ${comp} ]] ; then
${arch} "${a}"
else