[pacman-dev] [PATCH 3/3] rankmirrors: fix bogus variable assignment
Andres P
aepd87 at gmail.com
Tue Jun 22 22:42:51 EDT 2010
$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 at gmail.com>
---
scripts/rankmirrors.sh.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/rankmirrors.sh.in b/scripts/rankmirrors.sh.in
index 6170a22..b0dc1ab 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
--
1.7.1
More information about the pacman-dev
mailing list