Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18780 - 'emerge sync' fails in cron
Summary: 'emerge sync' fails in cron
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 21165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-04 21:16 UTC by Dylan Carlson (RETIRED)
Modified: 2011-10-30 22:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Carlson (RETIRED) gentoo-dev 2003-04-04 21:16:58 UTC
Traceback (most recent call last):
  File "/usr/bin/emerge", line 258, in ?
    emergelog("Started emerge on: "+time.strftime("%b %d, %Y %H:%M:%S", time.localtime()))
  File "/usr/bin/emerge", line 168, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs
    apply(func, targs, kargs)
  File "/usr/bin/emerge", line 183, in emergeexit
    emergelog(" *** terminating.")
  File "/usr/bin/emerge", line 168, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM

Reproducible: Always
Steps to Reproduce:
This used to work before merging to -r13

1. add 'emerge sync' to root crontab on a schedule
2. check root's mail after it runs to see the error
Comment 1 Martin Ehmsen (RETIRED) gentoo-dev 2003-05-14 08:05:28 UTC
I second this...
I get the following (it happend after the latest update to portage in the ~x86-series):

Error in sys.exitfunc:                                                           
Traceback (most recent call last):                                               
  File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs                
    apply(func, targs, kargs)                                                    
  File "/usr/bin/emerge", line 201, in emergeexit                                
    emergelog(" *** terminating.")                                               
  File "/usr/bin/emerge", line 186, in emergelog                                 
    xtermTitle(mystr)                                                            
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle      
    myt=os.environ["TERM"]                                                       
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__                 
    def __getitem__(self, key): return self.data[key]                            
KeyError: TERM                                                                   
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-05-14 23:02:57 UTC
This is kinda good actually... as the vast majority shouldn't be doing
this at all... Mirrors are the only exception.

FEATURES=notitles
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-05-18 13:28:12 UTC
*** Bug 21165 has been marked as a duplicate of this bug. ***