[Rpm-metadata] [PATCH] output dir option

Dennis Gregorovic dgregor at redhat.com
Tue Jan 31 01:25:52 UTC 2006


The attached patch creates a new configuration option "outputdir" which
specifies the directory where the "repodata" dir will be created.  By
default, the outputdir is the same as the basedir.  

A user specifying the outputdir can create repodata somewhere other than
the package source.  This can be useful, for example, when the package
source is on a read-only filesystem.  

Along these lines, I'm also working on a separate patch for yum that
will use the xml:base attribute of the location tag when it is set.
Then, by using a command like

 $ createrepo --baseurl file:///mnt/loop --outputdir . /mnt/loop

we can create a local yum repository against read-only package
directories.

One more note about the patch.  I moved the "# Fix paths" section of
code from main() to parseArgs().  Like my previous patch, this helps to
consolidate the configuration settings so that code using
genpkgmetadata.py as a library works more smoothly.

Thoughts?

-- Dennis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: outputdir.patch
Type: text/x-patch
Size: 6228 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20060130/5ce34ce0/attachment.bin 


More information about the Rpm-metadata mailing list