[oe-commits] [openembedded-core] 04/06: package_deb.bbclass: Avoid writing empty custom fields

git at git.openembedded.org git at git.openembedded.org
Sat Apr 29 10:18:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit f0959c0908dfb386d29f13fcd3e57b2b004c6c14
Author: Andreas Oberritter <obi at opendreambox.org>
AuthorDate: Fri Apr 28 20:38:22 2017 +0200

    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 at opendreambox.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/package_deb.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 3cd5efa..eacabcd 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")
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list