Hello,

On Friday, February 04, 2011 03:47:54 am Anas Nashif wrote:
> > Last I checked, createrepo support package groups, but
> > not patterns. zypper supports patterns but not package
> > groups.  The only way to create both is through
> > OBS.[1]
> 
> What createrep does is just add another section in the
> repomd.xml, it is just matter of convenience. We add the
> patterns using modifyrepo.
> 
> To convert from comps to patterns, you can use this xsl
> file:
> http://meego.gitorious.org/meego-os-base/package-groups/
> blobs/master/bak/patterns.xsl

Thanks a million for this link.

> But I am not sure why you want to do that, a pattern is a
> simple list of packages, so no reason to start from
> comps to get patterns.

Got it.  I've reversed it.  I'm doing it this way, now.

Since I've found little documentation on how to do this, here's a 
simplified procedure:

1. Create the patterns.xml file with all the pattern
   definitions.
2. Convert to groups/comps using the XSL provided in
   meego-os-base/package-groups
3. Create the repos like this (abbreviated):

    ## Copy RPM packages to a folder, repos/
    $ mkdir -p repos/repodata
    $ cp -f patterns.xml comps.xml repos/repodata
    $ createrepo -g repos/repodata/comps.xml repos/
    $ modifyrepo repos/repodata/patterns.xml repos/repodata

4. Sign the file repos/repodata/repomd.xml

Since I had a hard time finding the docs on these XML schemas, here's some 
documentation links that I 
found:

Relax NG Schemas: 
http://gitorious.org/opensuse/libzypp/trees/master/zypp/parser/yum/schema/
Repos Metadata:   http://en.opensuse.org/openSUSE:Standards_Rpm_Metadata
Patterns File:    
http://en.opensuse.org/openSUSE:Standards_Rpm_Metadata_patterns

And, finally, I've added some stuff to the MeeGo Wiki here:

http://wiki.meego.com/Image_Creation#Metapackages.2C_Patterns.2C_and_Repository_Creation

-gabriel
_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to