Bug 6236

Summary: Adding "updateinfo" metadata to RPM Fusion repodata
Product: Infrastructure Reporter: Ankur Sinha "FranciscoD" <sanjay.ankur>
Component: Build SystemAssignee: Nicolas Chauvet <kwizart>
Status: NEW ---    
Severity: enhancement CC: leigh123linux, lxtnow, sergio
Priority: P1    
Version: NA   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Ankur Sinha "FranciscoD" 2022-03-01 17:16:59 CET
Filing this here for async discussion:

I was looking at the output of `dnf updateinfo` recently (to add to `byobu`), and noticed that it does not include information from RPM Fusion packages. 

So, I filed a bug against `dnf`, and got this reply:

https://bugzilla.redhat.com/show_bug.cgi?id=2057096

"
DNF makes no distinction between Fedora and other repositories.

The problem with some repositories is, that they do not contain updateinfo.xml metadata. These metadata are generated by bodhi when the updated package is pushed into repository. These metadata are then read, processed and displayed by the `dnf updateinfo` command.

Check whether repositories in question contain metadata of 'updateinfo' type - look into its repomd.xml file. For example for fedora 35 updates repository it is here: https://mirror.karneval.cz/pub/linux/fedora/linux/updates/35/Everything/x86_64/repodata/repomd.xml
If you open this file, you can find a record for updateinfo there:

<data type="updateinfo">
    <checksum type="sha256">d4f751e52ade335e2dd3211419f43486fa5177f0e80983656f7c36f91fbedb72</checksum>
    <open-checksum type="sha256">3a158833ae4d12eb56ad767d211bf4aa656c05017ed96ca2fb5dc2c784ade407</open-checksum>
    <location href="repodata/d4f751e52ade335e2dd3211419f43486fa5177f0e80983656f7c36f91fbedb72-updateinfo.xml.xz"/>
    <timestamp>1645933206</timestamp>
    <size>1714716</size>
    <open-size>36308317</open-size>
</data>

If you look into rpmfusion update repository (http://download1.rpmfusion.org/free/fedora/updates/35/x86_64/repodata/repomd.xml), there is no such record. Therefore updates for rpm fusion cannot be displayed by the `updateinfo` command.

If you need `updateinfo` do display information for particular repo, you need to persuade it's maintainers to include updateinfo metadata.

"

I did a quick look at Bodhi, and see that it injects updateinfo metadata into repodata using modifyrepo:

https://github.com/fedora-infra/bodhi/blob/53698b291e23928bc84af2795ad09bb3d75b9566/bodhi-server/bodhi/server/metadata.py

Now we don't have Bodhi at RPM Fusion, so I'm not sure how we'll go about a) generating this updateinfo metadata b) injecting it into the repodata.

I've asked on the bug and will update here if I get a response. I guess I could also reach out to Fedora infra if that'll help?


--

I note that no repository apart from Fedora uses a Bodhi deployment (that I know of), so it is unlikely that they provide this updateinfo metadata. So I guess a question also is "if it can be done, is it something RPM Fusion wants to do?" :)