Comments (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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repomd-parser.