After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734437 - Listen for PackageKit cache invalidations
Listen for PackageKit cache invalidations
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
3.13.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-08-07 15:23 UTC by Adam Williamson
Modified: 2014-09-01 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Williamson 2014-08-07 15:23:38 UTC
As discussed with hughsie at Flock: it would be good for Software to listen to PackageKit for cache invalidations. Currently Software continues to use cached data when it's not correct/safe to do so, leading to bugs along the lines of https://bugzilla.redhat.com/show_bug.cgi?id=1027183 (another case that fails is to run 'yum remove foo' with Software running, then search for 'foo' in Software and see that it displays as Installed).

The workaround is to force Software to restart, but it's not obviously particularly to a 'typical user' how to do this when Software runs in the background even when you close the UI.
Comment 1 Adam Williamson 2014-08-07 15:25:11 UTC
I actually meant https://bugzilla.redhat.com/show_bug.cgi?id=1027688 as the downstream bug reference, but I believe 1027183 probably *is* also caused by this problem.
Comment 2 Richard Hughes 2014-09-01 14:35:37 UTC
commit 3a246ef1835a4af6f9670c5fad2d6a7f9bb0631d
Author: Richard Hughes <richard@hughsie.com>
Date:   Mon Sep 1 12:14:39 2014 +0100

    Reload pages in the software center when the updates cache is changed
    
    This also makes the different actions more explicit:
    
    _setup:             Sets up any state for the shell panel; shows no UI
    _load:          Does any action and displays the result
    _reload:        Invalidates caches, then does _load()
    _switch_to:     Sets up headerbar and then does _load()
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=734437