[Rpm-metadata] replacing os.chdir calls with basedir config option
Dennis Gregorovic
dgregor at redhat.com
Fri Nov 11 13:47:24 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?
>
> -- Dennis
Oops... the last patch was just for genpkgmetadata.py. Here's the one
for dumpMetadata.py.
-- Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: createrepo-basedir2.patch
Type: text/x-patch
Size: 2595 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20051111/3277cc12/attachment.bin
More information about the Rpm-metadata
mailing list