aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorReinis Danne <rei4dan@gmail.com>2014-01-20 18:16:49 +0200
committerReinis Danne <rei4dan@gmail.com>2014-01-21 21:42:28 +0200
commit4660a767bf3d9376e7ee32738b13138d54878ff9 (patch)
treed4158f60c2e3baa7f4f035458a257bb9eb9e9ff8 /eclass
parentalternatives-2.eclass: Update copyright (diff)
downloadsci-4660a767bf3d9376e7ee32738b13138d54878ff9.tar.gz
sci-4660a767bf3d9376e7ee32738b13138d54878ff9.tar.bz2
sci-4660a767bf3d9376e7ee32738b13138d54878ff9.zip
alternatives-2.eclass: Remove unused variables
Diffstat (limited to 'eclass')
-rw-r--r--eclass/alternatives-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass
index 6a99a19e3..becc0e42a 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%:*}"