summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres P <aepd87@gmail.com>2010-06-22 22:12:51 -0430
committerAllan McRae <allan@archlinux.org>2010-06-23 13:32:21 +1000
commit2222e9f8dfe6e149262f629571b3432718351d3f (patch)
tree036b1189354b402ae0c50e76af32ed55f2f42f4c
parentc2cf6a14cf44400d0ef249b38d37eb04d3424bf4 (diff)
downloadpacman-2222e9f8dfe6e149262f629571b3432718351d3f.tar.xz
rankmirrors: fix bogus variable assignment
$replacedurl was being built from an expansion of itself. But at the time it happened, it was empty. Fixes FS#19911 Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/rankmirrors.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rankmirrors.sh.in b/scripts/rankmirrors.sh.in
index 9b4e973a..201cc4be 100644
--- a/scripts/rankmirrors.sh.in
+++ b/scripts/rankmirrors.sh.in
@@ -70,15 +70,15 @@ ARCH="$(uname -m)"
getfetchurl() {
local strippedurl="${1%/}"
- local replacedurl="${replacedurl//'$arch'/$ARCH}"
+ local replacedurl="${strippedurl//'$arch'/$ARCH}"
if [[ ! $TARGETREPO ]]; then
- replacedurl="${strippedurl//'$repo'/core}"
+ replacedurl="${replacedurl//'$repo'/core}"
local tmp="${replacedurl%/*}"
tmp="${tmp%/*}"
local reponame="${tmp##*/}"
else
- replacedurl="${strippedurl//'$repo'/$TARGETREPO}"
+ replacedurl="${replacedurl//'$repo'/$TARGETREPO}"
local reponame="$TARGETREPO"
fi