summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
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:17:23 +0100
commit470995c3c62be9f89064244df8a3fcc1c3761645 (patch)
tree4b3b9d107d2e0021df1df1b381fecf576cfb6bd1 /meta/classes/package_deb.bbclass
parenta428745d1594219413032d89065b522ff84a6ad3 (diff)
downloadpoky-470995c3c62be9f89064244df8a3fcc1c3761645.tar.gz
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>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-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 () {
187 # more fields 187 # more fields
188 188
189 custom_fields_chunk = get_package_additional_metadata("deb", localdata) 189 custom_fields_chunk = get_package_additional_metadata("deb", localdata)
190 if custom_fields_chunk is not None: 190 if custom_fields_chunk:
191 ctrlfile.write(custom_fields_chunk) 191 ctrlfile.write(custom_fields_chunk)
192 ctrlfile.write("\n") 192 ctrlfile.write("\n")
193 193