gnome-software 'forgets' applications if repo is being refreshed (added/removed appdata)
Submitted by Dominique Leuenberger
Original downstream report:
On IRC we discussed this case and tracked it down that it happens on openSUSE when the repos refresh, as that implies we 'drop' the files in /var/cache/app-info and put the new ones in place based on the dynamically created ones in the repository.
While dropping the files in /var/cache/app-info, gnome-software 'unregisters' the applications that were listed there (sounds sensible)
When the new files are being added back, gnome-software fails to register the new apps, claiming it has duplicate IDs, thus discarding them.
Seems the 'deregistration' did not clean out the IDs as expected from the memory database; killing gnome-software (also the background service) and restarting has it show the right content again