[tools] mrepo seems to ignore lftp-mirror-options

Dag Wieers dag at wieers.com
Thu Mar 29 15:40:32 CEST 2007


On Wed, 28 Mar 2007, Brian C. Hill wrote:

> 	I am trying to mirror only certain RPM's from rpmforge, rather
> than all 5K rpms. I tried using lftp-mirror-options to do that, but it
> seems to be ignored. When I "ps -fp <lftp pid> --width=400", I see the
> long list of other options, but not the one I specificed. I also tried
> "-X blah" just to keep it simple - no luck.
> 
> 	Am I missing something?

The lftp-mirror-options is a 'system-wide' option that belongs in the 
[main] section. If you did that, it should work (I went over the code, 
which is pretty simple) and do not see an error.

Beware though, that you have 3 directives to influence what lftp does:

	lftp-options
	lftp-commands
	lftp-mirror-options

On the commandline this would look like:

	lftp <lftp-options> -c '<lftp-commands>; mirror <lftp-mirror-options> <url> <path>'

But it looks like you already know that :)

I tried it myself by just adding:

	[main]
	lftp-mirror-options = --just-a-test

And by doing:

	mrepo -vvvvu -t http rhel5s-i386

And I see:

	rhel5s-i386: Mirror packages from http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/ to /shelf/redhat/system/rhel5s-i386/rpmforge
	Execute: exec /usr/bin/lftp  -c '; mirror --just-a-test -v -v -v -e -I *.rpm -X "/headers/" -X "/repodata/" -X "*.src.rpm" -X "/SRPMS/" -X "*-debuginfo-*.rpm" -X "/debug/" http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/ /shelf/redhat/system/rhel5s-i386/rpmforge'
	mirror: unrecognized option `--just-a-test'
	Try `help mirror' for more information.
	mrepo: Mirroring failed for http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/ 
	with message:
	  Failed with return code: 256

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]


More information about the tools mailing list