V Wed, Dec 07, 2022 at 02:43:32PM +0100, Ewoud Kohl van Wijngaarden napsal(a): > On Wed, Dec 07, 2022 at 02:23:18PM +0100, Petr Pisar wrote: > > Those who should be concerned most are DNF5 developers and relengs producing > > composes. > > There are third party repositories which also publish modular metadata. I > know this because in yum.theforeman.org we do this. Do we fall under relengs > producing composes? > Yes. If you produce a repository with modular metadata, then you are the target audience. I believe that DNF will retain support for YAML format for some (rather long) period. > > If you are interested in it, I recommend starting with overview.xml file. It > > shows a skeleton of the format. It's so small I can quote it here: > > > > <index xmlns="http://fedoraproject.org/metadata/moduleindex" version="" revision=""> > > <module name=""> > > <stream name=""> <!-- DNF wants versions and contexts to differ in @summary etc. --> > > <build version="" context="" static="" arch="" summary="" description=""> > > <!-- @static defaults to false. --> > > ... > > <references comunity="" documentation="" tracker=""/> > > Is comunity a typo for community? > Yes. A typo. Thanks for the review. I fixed it now. > > A grand plan how to implement and deploy this format is outlined in > > top-level README.md > > <https://github.com/fedora-modularity/libmodulemd/blob/main/xml_specs/README.md>. > > Basically it will be injected into createrepo_c tool to produce the XML data > > in YUM repositories. > > I really like integration into the existing tooling like createrepo_c. That > was a massive gap in functionality. The plan is rather light on these > details so I'd be interested to see how you plan to expose this > functionality. Yes, this has not yet been planned in details. It's indeed handy that crearerepo_c automatically recognizes YAML files. My plan is to enhance createrepo_c so that when it sees the YAML files, it will put them into repodata as now and in addition convert them into XML and put the XML files into repodata. Naturally there will be a new option to disable this feature and to specify a version of the XML format. That's to maintain a repository format for older distributions. Whether producing XML will be the default mode of operation, or it will be on demand will depend on createrepo_c maintainers. I guess they have better insight on what the default behaviour should look like than me. -- Petr
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue