Block updates if you have unread Arch Linux news

So pointless…

People worry too much about this stuff making it more complicated than it really is.

6 Likes

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.

2 Likes

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!

1 Like

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.

3 Likes

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! :rofl:

1 Like

Why not just create a “Break my system” button in the Welcome app? It’s faster and straight to the point.

5 Likes

I think there is a pretty clear message in this post…“don’t read reddit” :stuck_out_tongue_winking_eye:

5 Likes

it can be handy :stuck_out_tongue: 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!

1 Like

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

5 Likes

But how do you know I read it? I could very well just skim it. :wink:

1 Like

Will it be flashing red one?! :scream: :scream_cat:

2 Likes

Easy, you must scroll down the 5000 words disclaimer in a fairly large font. :smiling_imp:

3 Likes

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!

4 Likes

Maybe even better? Boot on the live ISO and

:rotating_light: " BEFORE YOU CAN INSTALL YOU MUST READ THE FOLLOWING"

2 Likes

But only the tough issues, not the Lounge or the welcome category.

2 Likes