Danek Duvall wrote:
On Tue, Jun 02, 2009 at 03:09:32PM -0500, Jason King wrote:
Traceback (most recent call last):
File "/usr/bin/pkg", line 2495, in main_func
mydir = os.environ["PKG_IMAGE"]
File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'PKG_IMAGE'
That shouldn't be possible -- that line is protected by a try/except clause
that catches KeyError. Are you positive that /usr/bin/pkg hasn't been
modified in any way? If you run "pkg verify SUNWipkg", do you see an error
on that file?
This is a red herring.
pkg history attempts to record the last exception that happened if an
operation fails if it wasn't passed directly. This means that if the
last exception that happened and was handled was the above, it will be
recorded.
I need to find a better way to deal with this.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss