commit: d8e8accc142cce05d558d841c92e6e0249445ebf
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 9 01:26:34 2015 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Dec 9 01:29:59 2015 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d8e8accc
config: fix default USE_ORDER setting
This may fix the USE_ORDER KeyError that's been causing testFakedbapi
to fail for travis-ci.
pym/portage/package/ebuild/config.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pym/portage/package/ebuild/config.py
b/pym/portage/package/ebuild/config.py
index b6217e7..975fe88 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -838,7 +838,8 @@ class config(object):
# reasonable defaults; this is important as without
USE_ORDER,
# USE will always be "" (nothing set)!
if "USE_ORDER" not in self:
- self.backupenv["USE_ORDER"] =
"env:pkg:conf:defaults:pkginternal:repo:env.d"
+ self["USE_ORDER"] =
"env:pkg:conf:defaults:pkginternal:repo:env.d"
+ self.backup_changes("USE_ORDER")
if "CBUILD" not in self and "CHOST" in self:
self["CBUILD"] = self["CHOST"]