From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6BDB138335 for ; Fri, 28 Sep 2018 20:33:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8648FE0970; Fri, 28 Sep 2018 20:33:11 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E50DE0970 for ; Fri, 28 Sep 2018 20:33:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71956335CD9 for ; Fri, 28 Sep 2018 20:33:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24E363B3 for ; Fri, 28 Sep 2018 20:33:07 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1538166753.519b35146fdd334dbc2d5168c06ec167d1fc7084.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ecompress-file X-VCS-Directories: bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 519b35146fdd334dbc2d5168c06ec167d1fc7084 X-VCS-Branch: master Date: Fri, 28 Sep 2018 20:33:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 79fb03bd-aa18-41a9-a405-13b7df40e80f X-Archives-Hash: ed242ba7e38ead2c0c38879e3f2df28b commit: 519b35146fdd334dbc2d5168c06ec167d1fc7084 Author: Michał Górny gentoo org> AuthorDate: Fri Sep 28 07:16:58 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 28 20:32:33 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=519b3514 Revert "ecompress-file: de-duplicate filtered_args (bug 667072)" Reverts: 1fc311ce0afeef9f982213e43220d079a4ffec26 Signed-off-by: Michał Górny gentoo.org> Reviewed-by: Zac Medico gentoo.org> bin/ecompress-file | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ecompress-file b/bin/ecompress-file index e65b21ee4..18269c91b 100755 --- a/bin/ecompress-file +++ b/bin/ecompress-file @@ -13,7 +13,7 @@ compress_file() { done set +f mask_ext_re="^(${mask_ext_re:1})\$" - local -A filtered_args + local filtered_args=() local had_precompressed= for x in "$@" ; do [[ ${x##*.} =~ $mask_ext_re ]] && continue @@ -35,10 +35,10 @@ compress_file() { had_precompressed=1;; esac - filtered_args[${x}]= + filtered_args+=( "$x" ) done [[ ${#filtered_args[@]} -eq 0 ]] && return 0 - set -- "${!filtered_args[@]}" + set -- "${filtered_args[@]}" if [[ ${had_precompressed} ]]; then eqawarn "One or more compressed files were found in docompress-ed directories."