Bug 426337 - refresh update status on manual update
Summary: refresh update status on manual update
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: Notifier (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-09 09:57 UTC by lesto
Modified: 2021-03-05 15:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"