Bug 2207990 - Correct content of fedora-popular.xml/fedora-categories.xml files
Summary: Correct content of fedora-popular.xml/fedora-categories.xml files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: appstream-data
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-17 14:22 UTC by Milan Crha
Modified: 2024-05-22 11:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-22 11:32:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Milan Crha 2023-05-17 14:22:33 UTC
There are installed files:

   fedora-popular.xml
   fedora-categories.xml

into 

   /usr/share/app-info/xmls/

and they currently contain 

   <component type="desktop">

components, but it's wrong, it should rather read:

   <component merge="append">

. The difference is that the former pretends to be an application definition, while the later says to merge the added properties into the applications, if they exist.

This misinterpretation influences counts of the apps in the categories in the gnome-software.

Related upstream discussion:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2053#note_1747018

Reproducible: Always

Comment 1 Aoife Moloney 2024-05-22 11:04:52 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 2 Milan Crha 2024-05-22 11:22:23 UTC
This is still true, the files only moved to /usr/share/swcatalog/xml/.

Comment 3 Richard Hughes 2024-05-22 11:32:07 UTC
commit 695edaa4e889b0247424920011c1d38c324207c9 (HEAD -> main)
Author: Richard Hughes <richard>
Date:   Wed May 22 12:31:28 2024 +0100

    Use a merge type of append
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2207990

-- I'll build the metadata with that next week.


Note You need to log in before you can comment on or make changes to this bug.