On Jan 30, 2008 7:29 PM, Richard Lowe <[EMAIL PROTECTED]> wrote: > > Python's tarfile module ignores 'non-fatal' errors if the errorlevel > slot in the object is < 2, pkgtarfile appears to follow this > behaviour. > > It seems that the inability to extract a file is viewed as 'non-fatal' > in this context, and that pkg never sets errorlevel or does other > checking to make sure everything worked as expected. > > Is this intended for reasons I can't currently figure out, or do you > guys want a bug filed against pkg?
Not strictly related, but... In general, I personally despise Python's tarfile. Depending on which version of Python you are using, there are numerous bugs. I wrote a python module for zeroinstall that used Python's tarfile module instead of relying on GNUtar so that it would run on Solaris. File permissions, odd pathname behaviour, etc. come to mind. I was able to workaround all of them in the python module itself, but I do wonder how much it should be relied on. I suppose it depends on what version of Python is your target (I think 2.4.4 is the current one for ips?) as to where you want to file the bug. Cheers, -- Shawn Walker, Software and Systems Analyst http://binarycrusader.blogspot.com/ "To err is human -- and to blame it on a computer is even more so." - Robert Orben _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
