Re: repomd.xml product matching

Duncan Mac-Vicar Prett <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
Duncan Mac-Vicar Prett wrote:
>
> Hi, this is the thread to discuss the repository metadata to specify 
> which products this repository was created for, and for what purpose.
>
> On the call, it was suggested to use:
>
> <distro>
>  <id></id>
>  ...
> </distro>
Note that CPE already defines a xml representation, however it is too 
complex for our purposes:

<?xml version="1.0" encoding="UTF-8"?>
<cpe:platform-specification xmlns:cpe="http://cpe.mitre.org/language/2.0">
<cpe:platform id="123">
<cpe:title>Microsoft Windows XP with Adobe Reader</cpe:title>
<cpe:logical-test operator="AND" negate="FALSE">
<cpe:fact-ref name="cpe:/o:microsoft:windows-nt:xp" />
<cpe:fact-ref name="cpe:/a:adobe:reader" />
</cpe:logical-test>
</cpe:platform>
</cpe:platform-specification>

However it could be inspiration to use cpe:name tag instead of id to 
make it more clear.

Duncan
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.