Re: replacing os.chdir calls with basedir config option
Paul Nasrat <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
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