]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext/sign_rpm/sign_package_feed: Add missing getVar parameter
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Dec 2015 22:48:35 +0000 (22:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2015 15:16:04 +0000 (15:16 +0000)
We should always pass a parameter to getVar, add missing default value.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass
meta/classes/sign_package_feed.bbclass
meta/classes/sign_rpm.bbclass

index 8601c78410fd24fc30a12be485c852addfd8db8a..802cbe1abe6c6a515f7775a692d0a1cab86428c7 100644 (file)
@@ -144,7 +144,7 @@ python copy_buildsystem () {
         f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False))
 
         # Some classes are not suitable for SDK, remove them from INHERIT
-        f.write('INHERIT_remove = "%s"\n' % d.getVar('SDK_INHERIT_BLACKLIST'))
+        f.write('INHERIT_remove = "%s"\n' % d.getVar('SDK_INHERIT_BLACKLIST', False))
 
         # Bypass the default connectivity check if any
         f.write('CONNECTIVITY_CHECK_URIS = ""\n\n')
index 4263810028654e6aab7358c8a6384adf0f417373..d89bc0b1954a13520f08bad30f445566d87a13b0 100644 (file)
@@ -24,7 +24,7 @@ python () {
 
     # Set expected location of the public key
     d.setVar('PACKAGE_FEED_GPG_PUBKEY',
-             os.path.join(d.getVar('STAGING_ETCDIR_NATIVE'),
+             os.path.join(d.getVar('STAGING_ETCDIR_NATIVE', False),
                                    'PACKAGE-FEED-GPG-PUBKEY'))
 }
 
index f0c3dc9be3ca71c09b7685a10695c3f4ed9cc336..bc916a7097bb1a182a2fde58fc7ef64c3f30c560 100644 (file)
@@ -23,7 +23,7 @@ python () {
             raise_sanity_error("You need to define %s in the config" % var, d)
 
     # Set the expected location of the public key
-    d.setVar('RPM_GPG_PUBKEY', os.path.join(d.getVar('STAGING_ETCDIR_NATIVE'),
+    d.setVar('RPM_GPG_PUBKEY', os.path.join(d.getVar('STAGING_ETCDIR_NATIVE', False),
                                             'RPM-GPG-PUBKEY'))
 }