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

Bug 84401

Summary: Mistakes in CVS code: match_to_list, match_from_list, portage.py portage_util.py
Product: Portage Development Reporter: Alec Warner (RETIRED) <antarus>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixes errors in portage.py
portage_util

Description Alec Warner (RETIRED) archtester gentoo-dev Security 2005-03-07 07:58:03 UTC
I am reminded of carpaski's 'lists as sets' chatting in IRC :)

portage_py has a match_to_list function, however it was not qualified with a 'portage_util.' like it should have been.

match_to_list is declared and defined in portage_util.py.  However, match_to_list depends on match_from_list which is declared and defined in portage.py.  This behavior seems odd since the functions appear to do similar things.

Regardless, I've patched the required files and no longer get odd output.  However, please check over the patches to insure I didn't misinterpret the code.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-03-07 08:13:23 UTC
Created attachment 52850 [details, diff]
fixes errors in portage.py
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-03-07 08:13:38 UTC
Created attachment 52851 [details, diff]
portage_util
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-03-13 13:52:03 UTC
I believe this is fixed,or the code moved, or something ;)