Bug 1172416

Summary: Appstream data missing despite repeated zypper ref --force
Product: [openSUSE] openSUSE Distribution Reporter: Atri Bhattacharya <badshah400>
Component: OtherAssignee: Max Lin <mlin>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, jsrain, lubos.kocman, mlin
Version: Leap 15.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: gnome-software on first run

Description Atri Bhattacharya 2020-06-02 18:25:42 UTC
Created attachment 838436 [details]
gnome-software on first run

Gnome-software shows two apps: Opera (browser) and Steam --- and no other --- after installing Leap 15.2 GNOME from the NET install image (build #665.2). At this stage:

```
> ls -l /var/cache/app-info/xmls/
total 4
-rw-r--r-- 1 root root 2836 Jun  2 19:52 repo-non-oss.xml.gz
```

Run `zypper ref --force` repeatedly, but no change in status.
Comment 1 Dominique Leuenberger 2020-06-03 06:41:49 UTC
Not a GNOME issue or even a GNOME-Software issue: the oss repo simply does not publish appstream metadata and as such there is nothing for GS to show:

http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/

Assigning to the release manager of Leap. This must be fixed before GM, as the repo would be without the correct metadata otherwise
Comment 2 Max Lin 2020-06-03 10:41:22 UTC
I've hot-patched appstream-glib[1], I can see appdata* stuff re-appears in the new build.

[1] https://build.opensuse.org/package/show/openSUSE:Leap:15.2/appstream-glib

@Jiri

This bug should also happen in SLE, worth to have a check, perhaps we also need this patch in SLE15 SP2.
Comment 3 Max Lin 2020-06-10 04:36:17 UTC
Fixed in 15.2, please reopen if this issue has occurred again.