Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231358

Summary: Error in getmaskingstatus
Product: Portage Development Reporter: René 'Necoro' Neumann <gentoo>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS, REGRESSION
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077    
Attachments: getmaskingstatus.patch

Description René 'Necoro' Neumann 2008-07-09 23:11:10 UTC
Under some circumstances, getmaskingstatus yields an error:

File "/usr/lib/portage/pym/portage/__init__.py", line 6343, in getmaskingstatus
    settings.setcpv(p, mydb=metadata)
NameError: global name 'p' is not defined

It happens sometimes in Portato (a Portage GUI) and I haven't seen it when running from CLI... but it is really a portage bug nevertheless  ;)
Comment 1 René 'Necoro' Neumann 2008-07-09 23:12:32 UTC
Created attachment 159991 [details, diff]
getmaskingstatus.patch

And this small patch should fix it :)
(not tested, but assumed from reading the code)
Comment 2 Zac Medico gentoo-dev 2008-07-09 23:22:29 UTC
Thanks, you patch is in svn r11004.
Comment 3 Zac Medico gentoo-dev 2008-07-23 07:59:45 UTC
This is fixed in 2.2_rc2.