diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-05 06:14:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-05 06:14:36 +0000 |
commit | ede6fb659b0ff9b585b8cd2f5621fca0a8accab7 (patch) | |
tree | 261b99683767f23945ab13acba809fd225765dee /eclass | |
parent | since the API for rpm_unpack has changed, detect poor behavior and warn about... (diff) | |
download | gentoo-2-ede6fb659b0ff9b585b8cd2f5621fca0a8accab7.tar.gz gentoo-2-ede6fb659b0ff9b585b8cd2f5621fca0a8accab7.tar.bz2 gentoo-2-ede6fb659b0ff9b585b8cd2f5621fca0a8accab7.zip |
make rpm_unpack functions w/no args work off of $A like the unpack function
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rpm.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass index d5c4315153c7..b6b8341b5a14 100644 --- a/eclass/rpm.eclass +++ b/eclass/rpm.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.18 2009/10/05 06:05:04 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.19 2009/10/05 06:14:36 vapier Exp $ # @ECLASS: rpm.eclass # @MAINTAINER: @@ -16,6 +16,7 @@ DEPEND=">=app-arch/rpm2targz-9.0.0.3g" # @DESCRIPTION: # Unpack the contents of the specified rpms like the unpack() function. rpm_unpack() { + [[ $# -eq 0 ]] && set -- ${A} local a for a in "$@" ; do echo ">>> Unpacking ${a} to ${PWD}" @@ -40,6 +41,7 @@ rpm_unpack() { # unpack isn't perfect in that it simply unpacks all archives in the working # directory (with the assumption that there weren't any to start with). srcrpm_unpack() { + [[ $# -eq 0 ]] && set -- ${A} rpm_unpack "$@" # no .src.rpm files, then nothing to do |