commit: 022f0ba6fb75aba80d801772b4e622d44db2d668
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 28 00:50:12 2015 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Dec 28 00:50:24 2015 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=022f0ba6
elog/mod_save: fix CATEGORY KeyError (bug 569942)
Fixes: 39d81c514c33 ("[...]config.__getitem__(): Partially drop backward
compatibility for nonexistent keys.")
X-Gentoo-Bug: 569942
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=569942
pym/portage/elog/mod_save.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pym/portage/elog/mod_save.py b/pym/portage/elog/mod_save.py
index 7b1cd46..829ec6c 100644
--- a/pym/portage/elog/mod_save.py
+++ b/pym/portage/elog/mod_save.py
@@ -33,8 +33,7 @@ def process(mysettings, key, logentries, fulltext):
uid = portage_uid
ensure_dirs(logdir, uid=uid, gid=portage_gid, mode=0o2770)
- cat = mysettings['CATEGORY']
- pf = mysettings['PF']
+ cat, pf = portage.catsplit(key)
elogfilename = pf + ":" + _unicode_decode(
time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time())),