[oe-commits] [meta-openembedded] 10/13: netmap-modules: Avoid type warning with python v3

git at git.openembedded.org git at git.openembedded.org
Thu Jun 2 16:46:07 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit bf83e4d8fcfdb022c0e90e0d5d6073ab62c170b5
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Jun 2 10:34:05 2016 +0100

    netmap-modules: Avoid type warning with python v3
    
    Python 3 is stricter about type comparisions, this avoids warnings.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
index 406a4f3..6544bb5 100644
--- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
+++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
@@ -70,7 +70,7 @@ do_configure_append () {
 #define NETMAP_LINUX_HAVE_E1000E_DOWN2
 EOF
 
-if ${@ 'false' if (bb.utils.vercmp_string(d.getVar('KERNEL_VERSION', True), '3.17') < 0) else 'true' } ; then
+if ${@ 'false' if (bb.utils.vercmp_string(d.getVar('KERNEL_VERSION', True) or "0", '3.17') < 0) else 'true' } ; then
     echo OK
     cat >>  ${S}/LINUX/netmap_linux_config.h <<EOF
 #define NETMAP_LINUX_ALLOC_NETDEV_4ARGS

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


More information about the Openembedded-commits mailing list