1 |
commit: 700a5b19b310e805800dcef5730e8244115e774f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 1 07:22:18 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 1 07:22:18 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=700a5b19 |
7 |
|
8 |
ecompressdir: fix decompress, bug #462936 |
9 |
|
10 |
This array index variables have been broken in this code ever since it |
11 |
was added in commit 76939c46aa2817bdbcea703432c52e5aa04160f9. |
12 |
|
13 |
--- |
14 |
bin/ebuild-helpers/ecompressdir | 4 ++-- |
15 |
1 files changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir |
18 |
index 0f05c27..40079c0 100755 |
19 |
--- a/bin/ebuild-helpers/ecompressdir |
20 |
+++ b/bin/ebuild-helpers/ecompressdir |
21 |
@@ -1,5 +1,5 @@ |
22 |
#!/bin/bash |
23 |
-# Copyright 1999-2012 Gentoo Foundation |
24 |
+# Copyright 1999-2013 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/helper-functions.sh |
28 |
@@ -175,7 +175,7 @@ for dir in "$@" ; do |
29 |
find "${dir}" -type f -name '*.ecompress.file' -print0 | ${XARGS} -0 rm -f |
30 |
|
31 |
# not uncommon for packages to compress doc files themselves |
32 |
- for (( d = 0; d < ${#decompressors[@]}; d += 2 )) ; do |
33 |
+ for (( i = 0; i < ${#decompressors[@]}; i += 2 )) ; do |
34 |
# It's faster to parallelize at this stage than to try to |
35 |
# parallelize the compressors. This is because the find|xargs |
36 |
# ends up launching less compressors overall, so the overhead |