diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2014-01-24 04:13:08 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-02-26 13:38:18 +0100 |
commit | f7ed7f6e63e9b15548d452f9e60ceb6d8abaa7d9 (patch) | |
tree | c9f6b9c37554072d4b714bfd3c424719e96e5492 | |
parent | 10247c5fd5b2b2a67b684a48c6b952ab99cac4b8 (diff) | |
download | bcfg2-f7ed7f6e63e9b15548d452f9e60ceb6d8abaa7d9.tar.gz bcfg2-f7ed7f6e63e9b15548d452f9e60ceb6d8abaa7d9.tar.bz2 bcfg2-f7ed7f6e63e9b15548d452f9e60ceb6d8abaa7d9.zip |
Plugins/Packages/Portage: do not try to update the {var,port}tree instancesv1.3.4-spline1
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Portage.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Portage.py b/src/lib/Bcfg2/Server/Plugins/Packages/Portage.py index ac074f879..e7dcbeaa1 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Portage.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Portage.py @@ -164,12 +164,10 @@ class PortageCollection(Collection): eprefix=portage.settings['EPREFIX'], config_profile_path=profile) - portage.db[portage.root]['porttree'].settings = portage.settings - newdbapi = portage.dbapi.porttree.portdbapi(mysettings=portage.settings) - portage.db[portage.root]['porttree'].dbapi = newdbapi - - portage.db[portage.root]['vartree'].settings = portage.settings - portage.db[portage.root]['vartree'].dbapi.settings = portage.settings + portage.db[portage.root]['porttree'] \ + = portage.dbapi.porttree.portagetree(portage.settings) + portage.db[portage.root]['vartree'] \ + = portage.dbapi.vartree.vartree(portage.settings) def _set_portage_config(self): # get global use flags |