Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8348 - please add a warning when portage parsed files have syntax errors
Summary: please add a warning when portage parsed files have syntax errors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-25 06:48 UTC by whirm
Modified: 2011-10-30 22:21 UTC (History)
1 user (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 whirm 2002-09-25 06:48:20 UTC
I canceled the emerge of kdelibs because I forgot to unset the alsa flage
before, and now everytime that I call portage
It fails:

*******
bash-2.05a$ emerge -s kde
!!! Invalid token (not "=") spell
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2, in ?
    import os,sys,portage,xpak,string,re,commands,time,threadin
  File "/usr/lib/python2.2/site-packages/portage.py", line 3971
    settings=config()
  File "/usr/lib/python2.2/site-packages/portage.py", line 675,
    useorder=self["USE_ORDER"]
  File "/usr/lib/python2.2/site-packages/portage.py", line 738,
    if x.has_key(mykey):
AttributeError: 'NoneType' object has no attribute 'has_key'
*******
If I do env-update:

***bash-2.05a# env-update 
!!! Invalid token (not "=") spell
Traceback (most recent call last):
  File "/usr/sbin/env-update", line 3, in ?
    import portage
  File "/usr/lib/python2.2/site-packages/portage.py", line 3971, in ?
    settings=config()
  File "/usr/lib/python2.2/site-packages/portage.py", line 675, in __init__
    useorder=self["USE_ORDER"]
  File "/usr/lib/python2.2/site-packages/portage.py", line 738, in __getitem__
    if x.has_key(mykey):
AttributeError: 'NoneType' object has no attribute 'has_key'
bash-2.05a# 
****

but rc-update works perfectly!

******
bash-2.05a# rc-update del xdm default
 * xdm removed from runlevel default...
 * Caching service dependencies...                                             
  [ ok ] * rc-update complete.
bash-2.05a#
******

oh shit now I can't emerge nothing!!! 
will try to untar the stage3-i686_athlon.xp-1.4_rc1.tar.bz2 over my actual
system....
Comment 1 whirm 2002-09-25 07:00:33 UTC
ok, now I know that is some file in /etc/ that fucks off the thing, now I sould
got go eat something, late I will continue investigating... ^_^

oh and... I use:

portage 2.0.37
python 2.2.1-r2
Comment 2 whirm 2002-09-25 08:03:25 UTC
wow, I'm stupid! I deleted the starting " (cuote) on the USE="bla bla bla" line
in make.conf!!

I will change that to enchancements.

Please add a warning when something like that happens! ^_^

thanks...
Comment 3 SpanKY gentoo-dev 2002-09-25 21:10:49 UTC
this has cropped up before ...
Bug 1535 2726 4860

basically if you quit with something like:
died parsing <file> on line <#> ... please fix it and try again

i would prefer if emerge died rather than a notice and have it keep moving ...
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-10-20 03:13:25 UTC
Notices just so happen to be in as of 2.0.41