package_deb.bbclass: Avoid writing empty custom fields

Avoids parser errors if PACKAGE_ADD_METADATA_DEB is set to an
empty value.

(From OE-Core rev: f0959c0908dfb386d29f13fcd3e57b2b004c6c14)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andreas Oberritter 2017-04-28 20:38:22 +02:00 committed by Richard Purdie
parent a428745d15
commit 470995c3c6
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ python do_package_deb () {
# more fields
custom_fields_chunk = get_package_additional_metadata("deb", localdata)
if custom_fields_chunk is not None:
if custom_fields_chunk:
ctrlfile.write(custom_fields_chunk)
ctrlfile.write("\n")