So pointless…
People worry too much about this stuff making it more complicated than it really is.
Does this sync the local package database before aborting if there are unread news?
This is the hook:
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Checking Arch News with Informant ...
When = PreTransaction
Exec = /usr/bin/informant check
AbortOnFail
The trigger is “Upgrade”, so I believe it does… If I’m right, it could be potentially harmful to use it, as it could lead to a partial update.
It is a pretransaction hook. I am nearly certain those run after the db sync occurs.
So if you have unread news, it’s basically like running
pacman -Sy
Fortunately, it prevents you from installing any new packages, so that’s good, as that would cause a partial update.
EDIT: but not really… Here is the scenario:
You have unread news.
You try to update. It fails, but the db is synced.
You read the news.
You install a new package – partial update!
Unless you try to update, have it fail, read the news and decide to deal with it later.
Even without the risk of partial update, it still seems pointless. Arch news that something needs manual intervention happens once or twice a year at this point. Also, if you fail to read it, it doesn’t cause armageddon in your system or anything. In most cases, there is something blocking the update and you can read the news if that happens.
Adding the complexity of this hook seems like a solution worse than the original problem. If there is an original problem in this case.
Someone with a M$-GitHub account1 should post that partial update scenario as an issue…
1 which means I’m disqualified from that, as I’m unwilling to make one.
Sounds like a feature we need to implement on EndeavourOS Eos-News!
Why not just create a “Break my system” button in the Welcome app? It’s faster and straight to the point.
I think there is a pretty clear message in this post…“don’t read reddit”
it can be handy fairly i used it also but hardly use it basicly lol but it force you to read… depend also which intervention it is
@manuel could do that with a nice new shiny EOS icon!
Hmm? Maybe Stop all updates…Time to read the news!
I don’t even like Reddit!
They are completely right… Your computer could blow up if you haven’t read the Arch news. Perhaps we can create a big disclaimer, like the huge Cookie consent disclaimers on news websites.
In our case it will take over your screen unless you read it and we should call it EOS-ALARM-DISCLAIMER-MUST-READ-APP-!-!-!
What do you think? @manuel
But how do you know I read it? I could very well just skim it.
Will it be flashing red one?!
Easy, you must scroll down the 5000 words disclaimer in a fairly large font.
Or you can make it that it is required to have at least 6 hours of forum reading time between each update…
I still think “Break my system” button is a better idea, though. Saves so much time!
Maybe even better? Boot on the live ISO and
" BEFORE YOU CAN INSTALL YOU MUST READ THE FOLLOWING"
But only the tough issues, not the Lounge or the welcome category.