From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CC644138247 for ; Mon, 20 Jan 2014 17:53:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 681C1E0FD7; Mon, 20 Jan 2014 17:53:24 +0000 (UTC) Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A23E6E0C6B for ; Mon, 20 Jan 2014 17:53:23 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id e49so3677443eek.28 for ; Mon, 20 Jan 2014 09:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=Ojt1ARXYAZUxv0chJPG3isXiddZHbchh1D9j2OGHWB8=; b=bS8+kXTqSHmboyKsCL641di3HrKzY6BXdvmmhBwgkV4n4TB58FRgssnK2hOQ7j/orS WN5W7GZGr21uBmkdGbVgfPFSVRX8tpYuXkfzivI27iH/5XT+VYJ6fTPO8NUV8QpUhlYz QVm1Bj2cIbcqRmyQX45mVuB0+Vhh5B/gbLADpjOmMFYK0TgnnqnCdzkMcxxNi7zBwuD5 scR45hF9/m40XJ03Z1Hs1S+cq2gy3hTd0z6SYoyvlub7N888uJKy7PNce3xpiXUC7W8E 86UHg8z2SeR3804kk6zFt8SGQXLzInQlXcWMcvkpnN1iHht8VjNaeltnys3mHVL1PjLL QUBw== X-Received: by 10.15.95.72 with SMTP id bc48mr19098544eeb.49.1390240402300; Mon, 20 Jan 2014 09:53:22 -0800 (PST) Received: from localhost.localdomain (dsl-trebrasgw2-58c0d8-67.dhcp.inet.fi. [88.192.216.67]) by mx.google.com with ESMTPSA id o47sm5514777eem.21.2014.01.20.09.53.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 09:53:21 -0800 (PST) From: Reinis Danne To: gentoo-science@lists.gentoo.org Subject: [gentoo-science] [PATCH 02/10] alternatives-2.eclass: Remove unused variables Date: Mon, 20 Jan 2014 19:53:04 +0200 Message-Id: <1390240392-12173-3-git-send-email-rei4dan@gmail.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1390240392-12173-1-git-send-email-rei4dan@gmail.com> References: <1390240392-12173-1-git-send-email-rei4dan@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org X-Archives-Salt: 4638d749-db26-49b1-85c2-9146e8a23f4a X-Archives-Hash: 3f0ed38a5234d412c956abe2c301de85 --- eclass/alternatives-2.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass index 5c42298..c466eed 100644 --- a/eclass/alternatives-2.eclass +++ b/eclass/alternatives-2.eclass @@ -23,7 +23,7 @@ alternatives_for() { #echo alternatives_for "${@}" (( $# >= 5 )) && (( ($#-3)%2 == 0)) || die "${FUNCNAME} requires exactly 3+N*2 arguments where N>=1" - local x dupl alternative=${1} provider=${2} importance=${3} index unique src target ret=0 + local alternative=${1} provider=${2} importance=${3} index src target ret=0 shift 3 # make sure importance is a signed integer @@ -139,7 +139,7 @@ alternatives-2_pkg_postinst() { } alternatives-2_pkg_prerm() { - local a alt provider p ignore + local a alt provider ignore [[ -n ${REPLACED_BY_ID} ]] || ignore=" --ignore" for a in "${ALTERNATIVES_PROVIDED[@]}"; do alt="${a%:*}" -- 1.8.5.3