pacmatic
pacmatic copied to clipboard
Arch Linux news feed moved permanently
On a clean Arch installation pacmatic never produces /var/log/arch-news.log
. It fails to download and parse the news because the location moved permanently and curl
command is missing the flag -L
to follow redirects.
➜ ~ curl -sD - https://www.archlinux.org/feeds/news/ -o /dev/null
HTTP/2 301
server: nginx
date: Sat, 20 Feb 2021 19:07:04 GMT
content-type: text/html
content-length: 162
location: https://archlinux.org/feeds/news/
strict-transport-security: max-age=31536000; includeSubdomains; preload
I just wanted to add that I had this issue and adding "-L" to the aforementioned curl command absolutely fixed it for me
This can also be fixed by removing the www.
. I would make a PR but I can't find an open source license for this code.