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.
cheers,
c.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages wajig depends on:
ii apt 0.5.27.2 Advanced front-end for dpkg
ii python 2.3.4-5 An interactive high-level object-o
ii python-apt 0.5.10 Python interface to libapt-pkg
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]