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

Bug 643870

Summary: sys-apps/portage: eliminate global QueryCommand._db variable
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2018-01-08 08:03:23 UTC
The load_emerge_config function initializes the global QueryCommand._db variable to use a substitute for portage.db (since portage.db is disabled by portage._disable_legacy_globals()).

It would be better to avoid having this global QueryCommand._db variable, by passing it as a parameter where needed.