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>
This commit is contained in:
Paul Eggleton 2013-03-20 15:22:22 +00:00
parent 65d3f55925
commit 98eed250bc

View File

@ -293,6 +293,10 @@ def main():
# why won't they just fix that?!) # why won't they just fix that?!)
tinfoil.config_data.setVar('LICENSE', '') 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 # Process and extract data from each layer
for layer in layerquery: for layer in layerquery:
transaction.enter_transaction_management() transaction.enter_transaction_management()