index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-07-28 07:31:21 +0000 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-07-28 07:31:21 +0000 |
commit | 043f74201967addd0353517fa10251975f7c723f (patch) | |
tree | 60b55602b4f50550e7d5b5fe5751b950c4b01536 /community/pacman-contrib/rankmirror.sh.diff | |
parent | a285bcc8d431861e2fcc52a9e9c1fe9cafcbf669 (diff) | |
parent | 8756fcb2e930b1c246991db06d7f2e089f816c2f (diff) |
-rw-r--r-- | community/pacman-contrib/rankmirror.sh.diff | 16 |
diff --git a/community/pacman-contrib/rankmirror.sh.diff b/community/pacman-contrib/rankmirror.sh.diff new file mode 100644 index 00000000..c7ea00a1 --- /dev/null +++ b/community/pacman-contrib/rankmirror.sh.diff @@ -0,0 +1,16 @@ +diff --git a/src/rankmirrors.sh.in b/src/rankmirrors.sh.in +index 08f7e28..8f9143f 100644 +--- a/src/rankmirrors.sh.in ++++ b/src/rankmirrors.sh.in +@@ -79,10 +79,8 @@ getfetchurl() { + local replacedurl="${strippedurl//'$arch'/$ARCH}" + if [[ ! $TARGETREPO ]]; then + replacedurl="${replacedurl//'$repo'/core}" +- local tmp="${replacedurl%/*}" +- tmp="${tmp%/*}" + +- local reponame="${tmp##*/}" ++ local reponame="${replacedurl##*/}" + else + replacedurl="${replacedurl//'$repo'/$TARGETREPO}" + local reponame="$TARGETREPO" |