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

Seth Vidal skvidal at fedoraproject.org
Fri Mar 5 13:54:06 UTC 2010



On Fri, 5 Mar 2010, Michael Andres wrote:

> On Friday 05 March 2010 13:41:22 Seth Vidal wrote:
>> On Fri, 5 Mar 2010, Michael Andres wrote:
>> Why not use the --distro and --content options to that effect?
>>    <tags>
>>      <content>head</content>
>>      <distro>opensuse</distro>
>>    </tags>
>>
>> they're already there.
>
> It's not really content/distro related. It's more a unique identifier of a
> repo (any kind of repo).
>
> Assume you add a repo from http://foo.bar, then you add http://foomirror.bar.
> Even if they are out of sync we'd like to detect that they actually refer to
> the same repo. Content and distro may change. We're looking for something
> that lasts longer. (like a package name that stays the same, even if the
> content changes).
>
> It's IMO cleaner to have a dedicated tag for this purpose, than using e.g. a
> <content> entry with a special syntax (like "origin=...").

okay - but instead of adding an 'origin' let's just add a repo tag into 
the above stanza.

same result, not a lot of new parsing required by anyone.

-sv



More information about the Yum-devel mailing list