[opensuse-buildservice] comps.xml
Hi all, Fedora's style of patterns with the yum metadata is by adding another file, comps.xml. What if it was possible to make a patterns file, and have OBS convert it into comps.xml and include it? Example of a comps.xml file: http://mirrors.kernel.org/fedora/releases/13/Everything/x86_64/os/repodata/1... This could provide compatibility under other clients like yum. (Someone should make a how-to for creating a patterns file in the wiki... I'll look into it, maybe?) -- later, Robert Xu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, Jul 28, 2010 at 10:33:02PM -0400, Robert Xu wrote:
This is actually already implemented, thanks to a patch from Iain Arnell. You just have to tell the system to create a comps file by adding "Patterntype: comps" to your project config. (It actually writes a "group.xml" file, I hope that this is correct.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Jul 29, 2010, at 3:52, Michael Schroeder <mls@suse.de> wrote:
Oh, didn't know that :) btw, i think it's comps.xml. I'll test out the functionality in a bit. Thanks! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Jul 29, 2010 at 3:43 PM, Robert Xu <robxu9@gmail.com> wrote:
The filename itself shouldn't matter - what's important is that the file is referenced in repomd.xml with <data type="group">. And I used group.xml rather than comps.xml because modifyrepo assumes that the name of the file being injected into repomd.xml can be used to determine the data "type". -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sun, Aug 1, 2010 at 23:47, Iain Arnell <iarnell@gmail.com> wrote:
Ok. Thanks for this great functionality :) I'm guessing that it get the patterns from a package, like patterns-openSUSE in openSUSE:Factory?
-- later, Robert Xu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Aug 2, 2010 at 5:52 AM, Robert Xu <robxu9@gmail.com> wrote:
No - it reads the regular buildservice pattern metadata (osc meta -e pattern <project> <pattern>) and simply converts to comps format when publishing the repo. A single project can generate suse-style patterns.xml and ymp files for suse repos and redhat-style groups.xml for redhat/fedora repos using the same metadata. -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Aug 2, 2010 at 01:36, Iain Arnell <iarnell@gmail.com> wrote:
Thanks for the info! So I tried it, and afterwards I inspected the comps file, only to find it blank. Any help?
-- later, Robert Xu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Aug 2, 2010 at 8:08 PM, Robert Xu <robxu9@gmail.com> wrote:
Can you post the output from "osc meta pattern <project> <pattern>" -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Aug 3, 2010 at 00:39, Iain Arnell <iarnell@gmail.com> wrote:
This is a test pattern I made; A ymp and patterns was generated, but the comps was blank. http://pastie.org/1073785 -- later, Robert Xu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Aug 3, 2010 at 11:27 PM, Robert Xu <robxu9@gmail.com> wrote:
Aha. That's what I get for still running 1.7 in production with a backported patch. Fix will be coming shortly. -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, Jul 28, 2010 at 10:33:02PM -0400, Robert Xu wrote:
This is actually already implemented, thanks to a patch from Iain Arnell. You just have to tell the system to create a comps file by adding "Patterntype: comps" to your project config. (It actually writes a "group.xml" file, I hope that this is correct.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Jul 29, 2010, at 3:52, Michael Schroeder <mls@suse.de> wrote:
Oh, didn't know that :) btw, i think it's comps.xml. I'll test out the functionality in a bit. Thanks! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Jul 29, 2010 at 3:43 PM, Robert Xu <robxu9@gmail.com> wrote:
The filename itself shouldn't matter - what's important is that the file is referenced in repomd.xml with <data type="group">. And I used group.xml rather than comps.xml because modifyrepo assumes that the name of the file being injected into repomd.xml can be used to determine the data "type". -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sun, Aug 1, 2010 at 23:47, Iain Arnell <iarnell@gmail.com> wrote:
Ok. Thanks for this great functionality :) I'm guessing that it get the patterns from a package, like patterns-openSUSE in openSUSE:Factory?
-- later, Robert Xu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Aug 2, 2010 at 5:52 AM, Robert Xu <robxu9@gmail.com> wrote:
No - it reads the regular buildservice pattern metadata (osc meta -e pattern <project> <pattern>) and simply converts to comps format when publishing the repo. A single project can generate suse-style patterns.xml and ymp files for suse repos and redhat-style groups.xml for redhat/fedora repos using the same metadata. -- Iain. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Iain Arnell
-
Michael Schroeder
-
Robert Xu