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

Submitted by Alexander Kanavin on May 17, 2019, 2:31 p.m. | Patch ID: 161310

Details

Message ID 20190517143154.116727-1-alex.kanavin@gmail.com
State New
Headers show

Commit Message

Alexander Kanavin May 17, 2019, 2:31 p.m.
Otherwise, if bitbake fails, there will be tracebacks later on.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 modules/steps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/modules/steps.py b/modules/steps.py
index 2eb4499..87d7584 100644
--- a/modules/steps.py
+++ b/modules/steps.py
@@ -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']: