Installed status of dependencies only updated after restart
Submitted by jre..@..il.com
Link to original bug (#777837)
Description
If I install winetricks in gnome-software it correctly pulls in its dependency wine. But then in g-s only winetricks will be shown as installed, wine not.
If I explicitly click install wine then, it shows some progress bars, and afterwards everything is shown correctly.
Alternatively I can "killall gnome-software" (or reboot). Then the status is correct in a new g-s.
If I uninstall wine it will also correctly uninstall winetricks, but both (winetricks always, wine maybe only sometimes) will still be shown as installed in g-s. If I try to "uninstall" it again I correctly get an error "no packages to remove".
After killall & restart their status is correct again.
Not sure if this is the solution, or just related, but I'd like g-s to refresh/reload its database (or whatever) automatically, or at least when it is "restarted" (= close window and start again), without having to kill the old process first.
Debian Stretch (testing/unstable) gnome-software 3.22.5-1 wine 1.8.6-3 winetricks 0.0+20170101-1
Note: wine installs only an appdata.xml (will submit upstream soon), but no .desktop file. winetricks only installs a .desktop (in upstream git, but not released yet). The needed versions to reproduce are currently in Debian unstable and Ubuntu Zesty.