Danek Duvall wrote:
On Tue, Mar 31, 2009 at 05:21:02PM -0500, Shawn Walker wrote:
Why not just try to chdir and then ignore the appropriate exception if it
fails?
I could, but I think this is equivalent. If you can think of a particular
reason to use the exception, I'll change it.
Also, shouldn't the the call to os.chdir in image_destroy also catch and
ignore the exception that gets raised in case pwd has been removed since
the operation started or perhaps attempt to chdir to '/' or something
similar?
pwd is the tests directory. If that gets removed while you're running the
tests, you're going to have all sorts of other problems, too, so I don't
*think* this is much to worry about. Again, I'm happy to hear arguments.
No, that sounds reasonable.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss