summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2017-04-28 20:38:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-29 11:16:25 +0100
commitf0959c0908dfb386d29f13fcd3e57b2b004c6c14 (patch)
treea325570dc892e4a0fa7e49919f7b6a76f95d3eb7 /meta
parentf66278f471c0bf9421ce2c55a56a144a0f9332bf (diff)
downloadopenembedded-core-f0959c0908dfb386d29f13fcd3e57b2b004c6c14.tar.gz
openembedded-core-f0959c0908dfb386d29f13fcd3e57b2b004c6c14.tar.bz2
openembedded-core-f0959c0908dfb386d29f13fcd3e57b2b004c6c14.zip
package_deb.bbclass: Avoid writing empty custom fields
Avoids parser errors if PACKAGE_ADD_METADATA_DEB is set to an empty value. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_deb.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 3cd5efa788..eacabcdb61 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -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")