From: Fabian Groffen Date: Fri, 2 Dec 2011 20:26:28 +0000 (+0100) Subject: _doebuild_path: initialise path before use X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ecc16f6f8ecdc4f67a72aedfe72abaad1ab5a58e;p=portage.git _doebuild_path: initialise path before use NameError: global name 'path' is not defined --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index e2c539206..4df632dcf 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -130,6 +130,7 @@ def _doebuild_path(settings, eapi=None): # PREFIX LOCAL: use DEFAULT_PATH and EXTRA_PATH from make.globals defaultpath = [x for x in settings.get("DEFAULT_PATH", "").split(":") if x] extrapath = [x for x in settings.get("EXTRA_PATH", "").split(":") if x] + path = [] if eapi not in (None, "0", "1", "2", "3"): path.append(os.path.join(portage_bin_path, "ebuild-helpers", "4"))