Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643870 - sys-apps/portage: eliminate global QueryCommand._db variable
Summary: sys-apps/portage: eliminate global QueryCommand._db variable
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 08:03 UTC by Zac Medico
Modified: 2018-01-08 08:03 UTC (History)
0 users

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 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.