From c6e010c6e58317d99d46378ceece3a4e760b2262 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 14 Jan 2009 03:16:11 +0000 Subject: Make sure spawn() always initializes opt_name because later code assumes that it is. svn path=/main/trunk/; revision=12502 --- pym/portage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 44a1358fe..1a8e17f5a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3035,6 +3035,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: -- cgit v1.2.3-1-g7c22