http_replicator

If it doesn't fit in another category, ask it here.
Post Reply
sles
Posts: 63
Joined: 2007/08/21 04:43:38

http_replicator

Post by sles » 2007/10/29 09:38:57

Hello!

I wrote small patch for it
http://gertjan.freezope.org/replicator/

so it can be used with flat directory model with yum, because now it can be forced to cache only rpms ( -x rpm):

diff http-replicator new
91a92
> extensions = {}
327c328,336
spl=tail.split('.')
> ext=spl.pop(-1)
> if len(Http.extensions) > 0:
> if ext in Http.extensions:
> path = tail # set as path
> else:
> return False
> else:
> path = tail # set as path
555a565
> parser.add_option('-x', '--ext', action='append', help='cache only files with ext, rpm:tgz:..')
576c586
#building aliased list
585a596,598
> for ext in options.ext:
> Http.extensions = ext.split(':')
> print Http.extensions


Hope it can bu useful

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”