]> code.ossystems Code Review - openembedded-core.git/commit
combo-layer: handle unset dest_dir in sanity_check()
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 20 May 2015 11:48:20 +0000 (13:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 May 2015 09:48:47 +0000 (10:48 +0100)
commitd4bf858b2c15bef128fd6d606b08203a318e2d4c
tree45ef5d17cafdb7f4ce473010af027c65bd20eca1
parentfe7780a9bbbfa4dcbbe457618a0842e91a3c6a0e
combo-layer: handle unset dest_dir in sanity_check()

The previous "clean up dest_dir checking" patch (f8cdbe7497) improved
handling of empty dest_dir but made handling of unset dest_dir worse:
instead showing the "Option dest_dir is not defined for component ..."
error, it fails with a Python exception.

Avoid that by providing a sane fallback for the unset case. With that
change, dest_dir is no longer strictly required, but the check for it
is kept to ensure that a combo-layer.conf also works with older
combo-layer versions.

[Yocto #7773]

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/combo-layer