[Rpm-metadata] replacing os.chdir calls with basedir config option

Paul Nasrat pnasrat at redhat.com
Fri Nov 11 16:51:31 UTC 2005


On Fri, 2005-11-11 at 08:44 -0500, Dennis Gregorovic wrote:
> I've started using createrepo as a library instead of a standalone app.
> The only issue that I've run into so far is that the os.chdir() calls
> can cause problems, especially if you have multiple threads using
> createrepo in parallel.
> 
> Attached is a patch that removes the os.chdir() calls and introduces a
> 'basedir' config option, settable with --basedir and defaulting to
> os.getcwd().
> 
> Thoughts?

That's also really useful for dealing with split dirs for me.

Paul




More information about the Rpm-metadata mailing list