aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 15:22:22 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 15:41:58 +0000
commit98eed250bc2459da2a7938569a2a4c40fc1eeb01 (patch)
tree417c97d647364b4b5de526b8f6ad93226ff3e67e /layerindex/update.py
parent65d3f55925e42b0d5941bf17809b9fecdd6598a6 (diff)
downloadopenembedded-core-contrib-98eed250bc2459da2a7938569a2a4c40fc1eeb01.tar.gz
update.py: ensure TMPDIR gets created before starting parse
We don't go through the normal code path where this directory would be created, and if it doesn't exist an error will be thrown in insane.bbclass when any QA issue is logged; so create it manually. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py
index b788c107da..4ada3e04d9 100755
--- a/layerindex/update.py
+++ b/layerindex/update.py
@@ -293,6 +293,10 @@ def main():
# why won't they just fix that?!)
tinfoil.config_data.setVar('LICENSE', '')
+ # Ensure TMPDIR exists (or insane.bbclass will blow up trying to write to the QA log)
+ oe_tmpdir = tinfoil.config_data.getVar('TMPDIR', True)
+ os.makedirs(oe_tmpdir)
+
# Process and extract data from each layer
for layer in layerquery:
transaction.enter_transaction_management()