Alternative forms of metadata

Anders F Björklund afb at algonet.se
Sat Jul 26 02:21:11 PDT 2008


Smart is currently using the XML version of Yum's RPM-metadata,
the primary/filelists/other (and group) files from createrepo:
http://linux.duke.edu/projects/metadata/

Other package managers have moved to more "efficient" forms of
representing these, and there has been some requests that Smart
should read the alternative forms instead of the regular XML:

yum sqlite: https://bugs.launchpad.net/smart/+bug/244889

zypp .solv: https://bugs.launchpad.net/smart/+bug/251020


This is easiest done by importing the parsing library, like
yum-metadata-parser or python-zypp, and calling upon either
yum or zypp to read the file rather than writing yet another.

But this would create a dependency of Smart on YUM / ZYpp, and
is probably best avoided. The current XML parser, however, only
requires the XML module (= ElementTree) maybe implicitly expat.


So I think it might be for the best to have Smart do only XML,
and close the above two with a "Won't Fix" (i.e. see yum/zypp)

--anders




More information about the Smart mailing list