[jhbuild/desrt/master] modules: fix check on pkg_config variable



commit 0ec4b351408a8d98c396dff30a7a2d565db58711
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Jan 3 14:57:28 2015 -0500

    modules: fix check on pkg_config variable
    
    This variable might well be equal to None, so just check its truth value
    instead of comparing it to the empty string.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742264

 jhbuild/modtypes/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/modtypes/__init__.py b/jhbuild/modtypes/__init__.py
index 991e25e..4ea3f3b 100644
--- a/jhbuild/modtypes/__init__.py
+++ b/jhbuild/modtypes/__init__.py
@@ -490,7 +490,7 @@ them into the prefix."""
         instance.supports_parallel_build = (node.getAttribute('supports-parallel-builds') != 'no')
         instance.config = config
         pkg_config = find_first_child_node_content(node, 'pkg-config')
-        if pkg_config != '':
+        if pkg_config:
             instance.pkg_config = pkg_config
         return instance
 


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