Received Sat 15 Jan 2005 3:47am +1100 from Calum Mackay:
> Package: wajig
> Version: 2.0.19-1
> Severity: normal
>
> For the last few days, certain wajig commands fail when run from root's
> cron:
>
> + wajig update
> Traceback (most recent call last):
> File "/usr/share/wajig/wajig.py", line 31, in ?
> import documentation,commands,changes,perform
> File "/usr/share/wajig/commands.py", line 43, in ?
> import changes
> File "/usr/share/wajig/changes.py", line 47, in ?
> import perform
> File "/usr/share/wajig/perform.py", line 34, in ?
> if os.path.exists("/usr/bin/sudo") and os.environ['USER'] <> 'root':
> File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
> def __getitem__(self, key): return self.data[key]
> KeyError: 'USER'
> + wajig describe-new
> Traceback (most recent call last):
> File "/usr/share/wajig/wajig.py", line 31, in ?
> import documentation,commands,changes,perform
> File "/usr/share/wajig/commands.py", line 43, in ?
> import changes
> File "/usr/share/wajig/changes.py", line 47, in ?
> import perform
> File "/usr/share/wajig/perform.py", line 34, in ?
> if os.path.exists("/usr/bin/sudo") and os.environ['USER'] <> 'root':
> File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
> def __getitem__(self, key): return self.data[key]
> KeyError: 'USER'
>
> and others (new-upgrades, toupgrade, auto-download).
>
> There's no USER set in the cron environment, I think you should use
> LOGNAME instead.
Thanks for the bug report Calum. This has been fixed by Dirk in the
just released wajig 2.0.19-2. Sorry about that problem.
Regards,
Graham
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]