From: Zac Medico Date: Mon, 1 Apr 2013 07:22:18 +0000 (-0700) Subject: ecompressdir: fix decompress, bug #462936 X-Git-Tag: v2.2.0_alpha171~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=700a5b19b310e805800dcef5730e8244115e774f;p=portage.git ecompressdir: fix decompress, bug #462936 This array index variables have been broken in this code ever since it was added in commit 76939c46aa2817bdbcea703432c52e5aa04160f9. --- diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir index 0f05c2743..40079c0d8 100755 --- a/bin/ebuild-helpers/ecompressdir +++ b/bin/ebuild-helpers/ecompressdir @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/helper-functions.sh @@ -175,7 +175,7 @@ for dir in "$@" ; do find "${dir}" -type f -name '*.ecompress.file' -print0 | ${XARGS} -0 rm -f # not uncommon for packages to compress doc files themselves - for (( d = 0; d < ${#decompressors[@]}; d += 2 )) ; do + for (( i = 0; i < ${#decompressors[@]}; i += 2 )) ; do # It's faster to parallelize at this stage than to try to # parallelize the compressors. This is because the find|xargs # ends up launching less compressors overall, so the overhead