[jhbuild/external-deps] Version can be 0 (any old version will do)



commit 181de8a46c566e2428e01b40b63b63627773f363
Author: John Carr <john carr unrouted co uk>
Date:   Sun Jun 14 15:08:45 2009 +0100

    Version can be 0 (any old version will do)

 jhbuild/utils/systempackages.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/utils/systempackages.py b/jhbuild/utils/systempackages.py
index a1e6a2d..3578a39 100644
--- a/jhbuild/utils/systempackages.py
+++ b/jhbuild/utils/systempackages.py
@@ -50,7 +50,7 @@ class SystemPackages(object):
         """ Returns true if a module is satisfiable by installing a system package """
         if isinstance(module, MetaModule):
             return False
-        if version:
+        if not version is None:
             return self.is_available(self.get_pkgname(module.name), version)
         if not isinstance(module.branch, TarballBranch):
             return False
@@ -60,7 +60,7 @@ class SystemPackages(object):
         """ Returns true if module is satisfied by an already installed system package """
         if isinstance(module, MetaModule):
             return False
-        if version:
+        if not version is None:
             return self.is_available(self.get_pkgname(module.name), version)
         if not isinstance(module.branch, TarballBranch):
             return False



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