[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5758/8267] package_deb.bbclass: Avoid writing empty custom fields



commit 470995c3c62be9f89064244df8a3fcc1c3761645
Author: Andreas Oberritter <obi opendreambox org>
Date:   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.
    
    (From OE-Core rev: f0959c0908dfb386d29f13fcd3e57b2b004c6c14)
    
    Signed-off-by: Andreas Oberritter <obi opendreambox org>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/package_deb.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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")
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]