Hi all.
I have run into two problems with the upgrade from pacman-contrib 1.10.6 to 1.11.0.
First, the script freezes if I use single-dash options but not double-dash ones. E.g., this sits there indefinitely with no output:
rankmirrors -v -n 7 -p -m 5 /etc/pacman.d/mirrorlist.pacnew
while this provides output, although it tells me that all mirrors (the ones that worked before the update) are unreachable:
rankmirrors --verbose --parallel --max-time 4 --working-only /etc/pacman.d/mirrorlist.pacnew
Second, it seems there has been a change from system/os/x86_64/system.db to core/os/x86_64/core.db that I can't figure out. I had the issue on one server, while another one worked -- and that's when I noticed the working one was 1.10.6. As soon as I upgraded it, it also stopped working. The getfetchurl() function has been changed quite a bit, I see, that that's where ths new "core" directory comes in. The problem is that the repos I check (e.g., https://mirror.clarkson.edu/artix-linux/) do not have a "core" directory, nor do they have core.db in the system/os/x86_64/ directory.
I put 'set -x' around the curl call in gettime() (line 73) to see what it was trying to fetch, e.g.:
curl -s -m 4 -w '%{time_total} %{http_code}' https://mirrors.dotsrc.org/artix-linux/repos/core/os/x86_64/core.db -o/dev/null
# https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch ... unreachable
curl -s -m 4 -w '%{time_total} %{http_code}' http://mirrors.redcorelinux.org/artixlinux/core/os/x86_64/core.db -o/dev/null
# http://mirrors.redcorelinux.org/artixlinux/$repo/os/$arch ... unreachable
Putting the curl call on the CLI shows a 404 is returned, and if you go to the mirror sites there is no "core" directory shown. There are only asteroids, galaxy, lib32, system, and world directories.
Are the mirrors just behind in getting restructured? Or is there something that needs manually adjusting on servers with this update?
Thanks for the help.
~Angelo
It is not line 73 but lines 92 and 177 that are important.
declare -r myver='1.10.6'
replacedurl="${replacedurl//'$repo'/system}"
else
declare -r myver='1.11.0'
replacedurl="${replacedurl//'$repo'/core}"
elsesystem-gremlins
The problem is solved with pacman-contrib 1.11.0-1.1