On 10/ 5/12 10:08 PM, Danek Duvall wrote:
Tim Foster wrote:
Yep, the latter will matter (he said poetically) I've changed this to pass
the name of a temporary directory to the function, and we destroy/recreate
that directory as necessary. If it still exists when we're handling any
exception that's thrown, we'll delete it then.
It'll also exist (albeit empty) after everything's successfully completed,
no? I think the "if exists: rmtree" should probably go in a finally
clause, though I don't know how that'll interact with the continue in the
except.
Ah, much nicer, thanks. That finally clause still gets called when
handling the exception and always runs before we continue to process the
rest of the publishers.
I've made that change and will re-test before putback.
cheers,
tim
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss