Use local myroot instead of portage.root global.
authorZac Medico <zmedico@gentoo.org>
Mon, 24 Apr 2006 12:37:49 +0000 (12:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 24 Apr 2006 12:37:49 +0000 (12:37 -0000)
svn path=/main/trunk/; revision=3212

pym/portage.py

index a707acd56ab8b486ef9ab59a7e63af1baa1e11f6..a6f2b58034fbdc32bca4961c9b985c566a3724e7 100644 (file)
@@ -2319,7 +2319,7 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
 
        #set up KV variable -- DEP SPEEDUP :: Don't waste time. Keep var persistent.
        if (mydo!="depend") or not mysettings.has_key("KV"):
-               mykv,err1=ExtractKernelVersion(root+"usr/src/linux")
+               mykv,err1=ExtractKernelVersion(os.path.join(myroot, "usr/src/linux"))
                if mykv:
                        # Regular source tree
                        mysettings["KV"]=mykv