[Rpm-metadata] Exposing split media

David Lutterkort dlutter at redhat.com
Thu Nov 10 20:12:14 UTC 2005


On Thu, 2005-11-10 at 03:11 -0500, seth vidal wrote:
> That also ties into David's idea of being able to make virtual
> repositories of arbitrary packages w/o having to have the packages
> themself. So we could possibly:
>  - generate the metadata w/o the media/base path on the actual packages
> or 
>    download existing metadata from a previously created repository.
> 
>   Then:
>  - generate a file mapping package->media/basepath
>  - combine media/basepath + previously created package metadata into new
> set of metadata, rewriting primary.xml and repomd.xml for new content
>   or
>  - create a new metadata file named location.xml containing the
> package->media map

I think for both anaconda's needs and virtual repos, you need a way to
manually specify the package -> basepath mapping (with appropriate tool
support), so that for both cases the same flow could be used; I would
structure it a little differently though to avoid rewriting primary.xml
and repomd.xml:

      * Generate/maintain a package->media/basepath mapping with a
        separate tool
      * In createrepo:
              * Read package->media/basepath mapping in a separate data
                structure (if it is given on the cmd line)
              * When generating primary.xml, add xml:base info if it
                exists for that package

Since we need a separate file to describe the package->media/basepath
mapping anyway, an alternative is to push all the work into the client,
and just include the mapping file in the repomd.xml. It would keep
createrepo simpler at the cost of duplicating work in every client that
uses the mapping info. I am not hot on this idea, but it's worth
thinking about.

> The reason I like the idea of having a package->basepath map that
> createrepo could take for input to generate the new primary.xml is to
> avoid arbitrary 'subdir mapping' code happening in createrepo.

Yes, specifying this explicitly seems much cleaner than relying on
subdir naming conventions.

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20051110/8a2b443c/attachment.pgp 


More information about the Rpm-metadata mailing list