I saw a comment on Reddit about someone who made an alias to run curl -s https://www.archlinux.org/feeds/news/ | xmllint --xpath //item/title\ \|\ //item/pubDate /dev/stdin | sed -r -e "s:<title>([^<]*?)</title><pubDate>([^<]*?)</pubDate>:\2\t\1\n:g" before running yay -Syu to see if there are any packages that need manual intervention or have any problems. I thought it would be cool if yay automatically did this when updating. I'd make a pull request, but I know absolutely nothing about Go and even making a script that just executed ls failed for some reason. If anyone could add this (or another implementation of something similar), that would be really cool.
Also, I just wanted to say this AUR helper is really cool. Thanks to everyone who contributed to it! :)
Probably best to add this as an option, maybe --news
Edit: Also add the following so that only the last and current months' news is shown. date -d only works on gnu, not busybox, just so you know.
grep "$(date -d '-1 month' '+%B')\|$(date '+%B')"
Yeah, I guess some people would just get annoyed. Or maybe just make it togglable in ~/.conf/yay/config.json (already exists for other settings).
Since you brought up the config file, it might be cool to add "hooks," commands that will be run on certain events. So instead of hard-coding this feed command, users can put whatever they want to run on updates.
On mobile wrong button.
I do want to get some comment and news fetching into yay, probably as an extension to -P.
No plan to implement right now but I like the idea.
-P seems perfect for that and --news would work as well. However -Pn is already taken for a different function, maybe -Pw would do?
I've thought about -W/--web also, this might deserve its own namespace.
It does seem like something that people might wanna access more quickly. Also it would be nice because the short and the long form would match. It is however a bit ambiguous.
What makes it ambiguous?
I just think that it is not as obvious as others, e.g. --sync or --upgrade. --web isn't immediately clear in what it does.
An alternative to adding this feature is using pacmatic, a pacman wrapper in the community repo that does this (it also prints mailing list chatter). pacmatic has an environmental variable, pacman_program, that lets you specify an alternative program to wrap. I've been using it with yay for a while.
News is already added via yay -Pw. It's not shown during -Syu currently though, you have to explicitly ask for it.
Stuff like mailing list chatter and such is definitely out of scope for Yay. Pacmatic would definitely be the recommended solution if anybody wants anything more than news.
As @Morganamilo mentioned pacmatic, here's my solution:
News is already added via
yay -Pw. It's not shown during-Syucurrently though, you have to explicitly ask for it.
I was trying this, but was unable to fetch any...
@Jpfonseca
according man
-w, --news
Print new news from the Archlinux homepage. News is considered new if it is newer than the build date of all native packages. Pass this twice to show all available news.
so yay -Pww will show all news
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is actual, I've faced with https://www.archlinux.org/news/nvidia-45528-is-incompatible-with-linux-59/ a few days ago.
Most helpful comment
News is already added via
yay -Pw. It's not shown during-Syucurrently though, you have to explicitly ask for it.Stuff like mailing list chatter and such is definitely out of scope for Yay. Pacmatic would definitely be the recommended solution if anybody wants anything more than news.