_doebuild_path: initialise path before use
authorFabian Groffen <grobian@gentoo.org>
Fri, 2 Dec 2011 20:26:28 +0000 (21:26 +0100)
committerFabian Groffen <grobian@gentoo.org>
Fri, 2 Dec 2011 20:26:28 +0000 (21:26 +0100)
NameError: global name 'path' is not defined

pym/portage/package/ebuild/doebuild.py

index e2c5392064a5f0a9bef7a317f294aec44e5e308d..4df632dcf4bd8786286730d2eb5d32bd4b11dc7f 100644 (file)
@@ -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"))