[Yum-devel] Q: New <origin> attribute in repomd.xml?

Seth Vidal skvidal at fedoraproject.org
Fri Mar 5 12:41:22 UTC 2010



On Fri, 5 Mar 2010, Michael Andres wrote:

>
> Hi.
>
> We (@opensuse) want some easy way to check whether a some rpmmd repository is
> already used on a system. Detection should work even if the repo is available
> via different URIs (e.g. http and DVD, or two different mirrors).
>
> The idea is to introduce a new tag in repomd.xml:
>
>       <repomd xmlns="http://linux.duke.edu/metadata/repo"
> +             xmlns:suse="http://opensuse.org/metadata/repo">
>
> +     <suse:origin>obs://build.opensuse.org/zypp:Head</suse:origin>
>       <revision>1267717198</revision>
>       <data type="primary">
>       ...
>
> <origin> should be some optional string provided by the creator of the
> repository. If two repomd.xml contain the same string then they are expected
> to contain metadata for the same repository (maybe in different revisions).
>
> This would enable you to detect duplicate repositories or test for the
> presence of a specific respository on a system (provided you know the
> creators naming schema).
>
>
> The question came up whether you'd find such a tag usefull as well?
> If so and we could agree on a common name, we'd use this instead of
> <suse:origin>.

Why not use the --distro and --content options to that effect?
   <tags>
     <content>head</content>
     <distro>opensuse</distro>
   </tags>

they're already there.

-sv



More information about the Yum-devel mailing list