pacmatic icon indicating copy to clipboard operation
pacmatic copied to clipboard

Arch Linux news feed moved permanently

Open miquecg opened this issue 3 years ago • 2 comments

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

miquecg avatar Feb 20 '21 19:02 miquecg

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

HackBug avatar Feb 28 '21 07:02 HackBug

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.

edlanglois avatar Nov 28 '21 19:11 edlanglois