keenerd / pacmatic

A little wrapper script to keep Arch Linux from shooting you in the foot.
http://kmkeen.com/pacmatic/
104 stars 25 forks source link

Arch Linux news feed moved permanently #41

Open miquecg opened 3 years ago

miquecg commented 3 years ago

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
HackBug commented 3 years ago

I just wanted to add that I had this issue and adding "-L" to the aforementioned curl command absolutely fixed it for me

edlanglois commented 2 years ago

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.