From 700a5b19b310e805800dcef5730e8244115e774f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 1 Apr 2013 00:22:18 -0700 Subject: [PATCH] ecompressdir: fix decompress, bug #462936 This array index variables have been broken in this code ever since it was added in commit 76939c46aa2817bdbcea703432c52e5aa04160f9. --- bin/ebuild-helpers/ecompressdir | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2