diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-05-20 02:21:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-05-20 02:21:17 +0000 |
commit | efa6f72243aa7e6ae44d39e5efa3d68d7e1208f1 (patch) | |
tree | d2abc1704db5a503c54acb6f33c699b9e55af06e /eclass | |
parent | Version bump. (diff) | |
download | historical-efa6f72243aa7e6ae44d39e5efa3d68d7e1208f1.tar.gz historical-efa6f72243aa7e6ae44d39e5efa3d68d7e1208f1.tar.bz2 historical-efa6f72243aa7e6ae44d39e5efa3d68d7e1208f1.zip |
drop unnecessary output padding in unpack_makeself #320313
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 8a260ca3140e..c2b407a1c0bc 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.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/eutils.eclass,v 1.343 2010/05/11 20:08:02 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.344 2010/05/20 02:21:17 vapier Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -1341,15 +1341,15 @@ unpack_makeself() { ;; 2.1.1) skip=$(grep -a ^offset= "${src}" | awk '{print $2}' | cut -b2-) - let skip="skip + 1" + (( skip++ )) ;; 2.1.2) skip=$(grep -a ^offset= "${src}" | awk '{print $3}' | head -n 1) - let skip="skip + 1" + (( skip++ )) ;; 2.1.3) skip=`grep -a ^offset= "${src}" | awk '{print $3}'` - let skip="skip + 1" + (( skip++ )) ;; 2.1.4|2.1.5) skip=$(grep -a offset=.*head.*wc "${src}" | awk '{print $3}' | head -n 1) @@ -1368,7 +1368,7 @@ unpack_makeself() { fi case ${exe} in tail) exe="tail -n +${skip} '${src}'";; - dd) exe="dd ibs=${skip} skip=1 obs=1024 conv=sync if='${src}'";; + dd) exe="dd ibs=${skip} skip=1 if='${src}'";; *) die "makeself cant handle exe '${exe}'" esac |