Skip to contentSkip to conversation

steps.py: set up AUH workdir before calling bitbake to get env

PATCH New Alexander Kanavin 1 participant 1 message May 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 steps.py: set up AUH workdir before calling bitbake to get env

Otherwise, if bitbake fails, there will be tracebacks later on.

---
 modules/steps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
modules/steps.py +1 -1
index 2eb4499..87d7584 100644
@@ -34,9 +34,9 @@ from errors import *
 from buildhistory import BuildHistory
 
 def load_env(devtool, bb, git, opts, pkg_ctx):
-    pkg_ctx['env'] = bb.env(pkg_ctx['PN'])
     pkg_ctx['workdir'] = os.path.join(pkg_ctx['base_dir'], pkg_ctx['PN'])
     os.mkdir(pkg_ctx['workdir'])
+    pkg_ctx['env'] = bb.env(pkg_ctx['PN'])
     pkg_ctx['recipe_dir'] = os.path.dirname(pkg_ctx['env']['FILE'])
 
     if pkg_ctx['env']['PV'] == pkg_ctx['NPV']:
Signature · 1 line
2.17.1