From: Mike Frysinger Date: Fri, 18 Nov 2005 03:29:38 +0000 (+0000) Subject: have unpack_makeself default to $A if nothing is specified X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84697f2bd1d939f3488349a8d8758adc14b1b6dd;p=gentoo.git have unpack_makeself default to $A if nothing is specified --- 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 # @@ -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}"