From df672e87487465549b1b1c95820909125f3bf499 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 14 Jan 2009 03:59:43 +0000 Subject: [PATCH] Make sure spawn() always initializes opt_name because later code assumes that it is. (trunk r12502) svn path=/main/branches/2.1.6/; revision=12512 --- pym/portage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index cacb6c937..46b702d4f 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3025,6 +3025,9 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero env=mysettings.environ() if mysettings.mycpv is not None: keywords["opt_name"] = "[%s]" % mysettings.mycpv + else: + keywords["opt_name"] = "[%s/%s]" % \ + (mysettings.get("CATEGORY",""), mysettings.get("PF","")) fd_pipes = keywords.get("fd_pipes") if fd_pipes is None: -- 2.26.2