Bug 426337

Summary: refresh update status on manual update
Product: [Applications] Discover Reporter: lesto <lestofante88>
Component: NotifierAssignee: Aleix Pol <aleixpol>
Status: RESOLVED UPSTREAM    
Severity: minor CC: null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description lesto 2020-09-09 09:57:18 UTC
SUMMARY
If i run a manual update (in my specific case on arch, using pacman) the notifier will still display updates available notification, only if you open discover it will update the status.
This could be relatively easily fixed by adding a pacman hook, that will trigger a recheck for updates.  
I guess the hard part would be to come up with a custom solution for each packet manager

STEPS TO REPRODUCE
1. when Notifier show available updates, run the update manually

OBSERVED RESULT
Notifier still display available updates notification

EXPECTED RESULT
Notifier does not display available update notification
Comment 1 Aleix Pol 2021-03-05 13:02:00 UTC
This is an issue in PackageKit. The alpm backend could be installing such a hook already. Please report/implement it there.

https://github.com/hughsie/PackageKit
Comment 2 lesto 2021-03-05 15:09:43 UTC
@aleix i open an issue as https://github.com/hughsie/PackageKit/issues/458 can you please check that I didnt write anything bad?
AFAIU this is a problem in PackageKit missing the proper API rather than just missing a simple hook installation.

In this case Discovery should also be changed to use the new eventual API, so this should not be resolved but "blocked"