3 Oct 2005 12:25
adding more information to repo metadata
Florian La Roche <laroche <at> redhat.com>
2005-10-03 10:25:32 GMT
2005-10-03 10:25:32 GMT
I've added the below text to http://people.redhat.com/laroche/pyrpm/README.html Adding the "flag" part of dependencies also as integer into the repodata would make it more complete and useful for new tasks. greetings, Florian La Roche Notes about the Repo-Metadata ----------------------------- The following things should be noted about the repo metadata. yum is using the repodata only within the resolver part, then downloads the rpm headers and passes all the headers on to rpmlib to verify again if the resolver of rpmlib is ok as well as doing e.g. the installation ordering part within rpmlib. If the repodata would be more complete, more steps could be done only based on the repodata being available: - Even if no epoch is specified, the metadata still specifies this as "0". For most code paths this is no problem as for all comparisons of version data, a missing epoch is the same as a "0" epoch. This should not be a huge problem and would be only a cleanup item for the repodata. - For dependency information the `flag` part is only partially copied into the repodata. Just adding the `flag` information as integer would make sure all information is present in any case. Extending the repodata to have `intflag` added alongside the old information would be good. - Repo data adds a "pre" flag if the RPMSENSE_PREREQ flag is set. That information is actually not complete to identify install prereq and we need the more complete flag information as requested above to be able todo correct installation ordering based on repodata.(Continue reading)
Meanwhile, it would be nice to get
dependency context
and colors (but not PreReq, sigh) exposed, that information is useful
for diagnostic purposes and more.
But please, not by value. E.g. dependency flags are almost all used
RSS Feed