[tools] [Patch] adding GLOB file mirroring

Edward Rudd eddie at omegaware.com
Sun Jan 21 02:08:58 CET 2007


This patch adds in a new mirroring schema of glob://, however this could
be easily merged into file:// without any issues.  Basically what it
does is it symlinks all the RPMS in the source dir to the mrepo dir
expanding the globs in the glob://uri.  Example

osl = glob:///var/dar/packages/*/*.el3.*.rpm

This will pull in ONLY the EL3 RPMS from the DAR repo. (yeah I'm still
using DAR to build my packages for EL3 and EL4,  haven't found anything
more *current and maintained* that is as simple as dar)

Also included in this patch is a simple fix for the file:// mechanism
that makes SURE the destination path is created first (1 line change).

oh, an another note, is there anything wrong with making rsync-options
overrideable per repo instead of being only global?  I did notice
however that there the Repo object is not passed to the mirror*
functions. So an additional parameter to the mirrorrsync function would
have to be added to support per repo rsync options. (there was a
previous thread on dec 18th 2006 someone *expecting* this behavior)

Anyways,
Thanks for the wonderful product.
Edward Rudd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrepo.diff
Type: text/x-patch
Size: 1827 bytes
Desc: not available
Url : http://lists.rpmforge.net/pipermail/tools/attachments/20070120/6ce8968b/mrepo.bin


More information about the tools mailing list