Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NameError: global name 'mycpv' is not defined
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Tue Jan 13, 2004 1:06 am    Post subject: NameError: global name 'mycpv' is not defined Reply with quote

I just upgraded portage to the newest version

Now when I want to unmerge something, I always get following error msg:

Code:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2194, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 1746, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"])
  File "/usr/lib/portage/pym/portage.py", line 2256, in unmerge
    mylink.unmerge(trimworld=mytrimworld,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 5310, in unmerge
    elif (len(matches)==1) and (matches[0]==mycpv):
NameError: global name 'mycpv' is not defined


I know it's dangerous to use "~x86" for emerge system, but how can I solve it now?
Back to top
View user's profile Send private message
tmo
n00b
n00b


Joined: 16 Jun 2003
Posts: 25
Location: Finland

PostPosted: Tue Jan 13, 2004 2:21 am    Post subject: Fix Reply with quote

I had same problem. Easy to fix...

Row 5310 in /usr/lib/portage/pym/portage.py should be:
Code:

                   elif (len(matches)==1) and (matches[0]==self.mycpv):
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9245
Location: beyond the rim

PostPosted: Tue Jan 13, 2004 4:22 am    Post subject: Reply with quote

fixed in _pre15
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum