amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

[FEATURE]: Warn about package interventions before upgrade (news)

Open fries1234 opened this issue 3 years ago • 6 comments

Is your feature request related to a problem? Please describe.

Sometimes, Arch might have a manual package intervention that you would have to do to upgrade. These are posted on the arch website, which sometimes you might forget to check before upgrading your system. Having the program warn you about package interventions before upgrading if there's a new news post up would be nice as it makes life a lot easier.

Describe the solution you'd like

Arch has an RSS feed for their news posts. We could use this feed and check if there's a new post and tell the user about it. We would have to find a way to store if the user has read the post or not so the program wont warn you if there's a new news post if you already read the news post.

Describe alternatives you've considered

I haven't considered any alternatives.

Additional context

No response

fries1234 avatar Sep 23 '22 05:09 fries1234

I think implementing something like eselect news would be a good approach

SomethingGeneric avatar Sep 23 '22 16:09 SomethingGeneric

how does that command work? i dont really have a gentoo vm to pull out rn.

fries1234 avatar Sep 23 '22 17:09 fries1234

eselect news read prints to your terminal, and then marks those items as read (tbh I haven't looked at the internals though, but emerge is python at least)

SomethingGeneric avatar Sep 23 '22 18:09 SomethingGeneric

I can think of 2 approaches for storing read

  1. Not super accurate, but we can assume that if news is shown, it is read by user(since the any issue is usually mentioned with package name in title anyway), so storing the date and time of last post shown and comparing with latest post to see if anything new has come up, if yes then show, if not, then skip
  2. highly accurate, like a proper rss reader, we can have opening of articles and then keep guid of the article in a read_articles.json file

Amanse avatar Oct 03 '22 08:10 Amanse

I was thinking we're probably good enough with the eslect approach, which is #1 above

SomethingGeneric avatar Oct 03 '22 17:10 SomethingGeneric

damn github markdown

SomethingGeneric avatar Oct 03 '22 17:10 SomethingGeneric