Re: RELAX NG

Féliciano Matias <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
Le mardi 18 janvier 2005 à 01:40 -0500, seth vidal a écrit : 
> On Tue, 2005-01-18 at 07:31 +0100, Féliciano Matias wrote:
> > I make Relax NG files for metadata of createrepo :
> > http://feliciano.matias.free.fr/metadata/rng/
> > 
> > They are provide "as is".
> 
> Thanks that's cool!
> But I'm confused - why do you have arch specified as a choice with
> x86/x86_64 archs listed only?
> 
> also in repomd.rng - it seems like you only allow for md5 checksums.

It's just a "try". I don't try to make it perfect because I do not have
the skin (I am learning xml, and I don't know very well rpm/createrepo).
Sure this can be improved.

Also note that primary.xml is "broken".
Example : 
                <format>        # should be "rpm:format" (or we need a parent)
                <rpm:license>LGPL</rpm:license> 
                ...
                </rpm:requires>
                <file>/usr/bin/locale</file>       # should be "rpm:format" (or we need a parent)
                <file>/usr/sbin/zdump</file>    # should be "rpm:format"
                </format>     # should be "rpm:format"

This force me to use some ugly hack in rpm-ns.rng : 
        <element name="format" ns="http://linux.duke.edu/metadata/common" .... # should be http://linux.duke.edu/metadata/rpm
        ...

and write many "ns="http://linux.duke.edu/metadata/rpm"' in many place
because the default name space is not
"http://linux.duke.edu/metadata/rpm".

_______________________________________________
Rpm-metadata mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBB7LShAlHlXNHHbFMRAkXDAJ4wL+UaXfUJ96c28n60aztDin2BugCeJsGD
JBCRZo909qrht/9XehCViAA=
=72ez
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.