Bug 1027688

Summary: gnome-software dont pickup installed package before system is rebooted.
Product: [Fedora] Fedora Reporter: Tim Lauridsen <tla>
Component: gnome-softwareAssignee: Richard Hughes <rhughes>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, dan.mashal, rhughes
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-07 15:28:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
before reboot
none
after reboot
none
after remove, and search for yumex none

Description Tim Lauridsen 2013-11-07 09:49:31 UTC
Created attachment 820968 [details]
before reboot

Description of problem:
If I install a local package with a newer version of an application, gnome-software don't pickup the change before the system is changed.


Version-Release number of selected component (if applicable):
3.11.1


How reproducible:
every time


Steps to Reproduce:
1. git clone https://github.com/timlau/yumex.git
2. cd yumex
3. sudo make get-builddeps
4. make test-inst (this will build & install a local 3.0.14 yumex package)
5. start gnome-software
6. search for 'yumex'

Actual results:
gnome-software shows the yumex-3.0.13 package available in the repository

Expected results:
gnome-software shows the yumex-3.0.14 package installed on the system.

Additional info:
After reboot of the system, then yumex-3.0.14 is shown with the appdata infomation it contains.
If I remove the yumex-3.0.14 package using gnome-software and seach for yumex, it finds the yumex-3.0.14 package as available, if I tries to install it, gnome-software will crach because the yumex-3.0.14 package is not available from the repository to install.

Comment 1 Tim Lauridsen 2013-11-07 09:50:39 UTC
Created attachment 820969 [details]
after reboot

Comment 2 Tim Lauridsen 2013-11-07 09:52:15 UTC
Created attachment 820970 [details]
after remove, and search for yumex

Comment 3 Adam Williamson 2014-08-07 15:28:37 UTC
Thanks for the report! I spoke to hughsie about this bug and he said the correct way to fix it (and several similar cases) would be for Software to listen to PackageKit for cache invalidations, and refresh its metadata when that happens. He said it'd make most sense to track this as an upstream bug (as it's basically a 'new feature', even though the purpose is to fix bugs), so I've filed https://bugzilla.gnome.org/show_bug.cgi?id=734437 , and we'll close this in favour of that - it doesn't mean the bug won't be fixed, just that that's the best way to track work. Thanks again!