diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-18 03:29:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-18 03:29:38 +0000 |
commit | 2125d9d2b84ed5bfcea3bd8e508e8c21bb88a591 (patch) | |
tree | a92cd5cb41081baa51ec9472bf3d721dc9873fc9 /eclass | |
parent | removed old ebuild, added mysql-5 blocker, adjusted httpd dep for one of the ... (diff) | |
download | gentoo-2-2125d9d2b84ed5bfcea3bd8e508e8c21bb88a591.tar.gz gentoo-2-2125d9d2b84ed5bfcea3bd8e508e8c21bb88a591.tar.bz2 gentoo-2-2125d9d2b84ed5bfcea3bd8e508e8c21bb88a591.zip |
have unpack_makeself default to $A if nothing is specified
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 49306bf4d66f..5284130efe17 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.216 2005/11/09 05:57:17 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.217 2005/11/18 03:29:38 vapier Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -1086,11 +1086,12 @@ unpack_pdv() { # - If the offset is not specified then we will attempt to extract # the proper offset from the script itself. unpack_makeself() { - local src=$(find_unpackable_file "$1") + local src_input=${1:-${A}} + local src=$(find_unpackable_file "${src_input}") local skip=$2 local exe=$3 - [[ -z ${src} ]] && die "Could not locate source for '$1'" + [[ -z ${src} ]] && die "Could not locate source for '${src_input}'" local shrtsrc=$(basename "${src}") echo ">>> Unpacking ${shrtsrc} to ${PWD}" |