Giter Site home page Giter Site logo

Comments (1)

ikapelyukhin avatar ikapelyukhin commented on September 24, 2024 1

Hey, 2D. 👋

Anything planned here already?

Nothing planned, because those other fields aren't used anywhere else (e.g. RMT or repo-tools).

Can we have these?

Sure, especially if you add them yourself 🙂

I can do a draft PR, just wanted to ask your opinion. Should I just add parsing these fields always, or attempt something like optional "extra_fields"?

Something optional could be nice (maybe supplying an optional code block that does additional parsing -- the actual values are sometimes an XML element attribute and sometimes element's text()), but the list of fields is hardcoded into RepomdParser::Reference class definition, having those defined dynamically kind of defies the purpose of having that class at all. Besides, the set of possible fields is very limited (it's not like you can add a random XML property to SUSE repos).

So right now I'm gravitating towards just adding those fields, it is the way of least resistance. 🙂 I'd recommend testing with RES repos and making sure nothing breaks, though -- RedHat repos have a slightly different XML format.

from repomd-parser.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.