From 1872e1591740e6ba22ea5a9ecfb90c98d9ca670b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 18 May 2009 19:19:37 +0200 Subject: [PATCH] [packagedb] don't ignore '' as version numbers packagedb.check() allows None as version parameter to ignore the version check; this patch changes the support so '' is not ignored as well. This is useful for modules that were installed but got their source directory removed, as jhbuild can't find a revision number in that situation, and will pass the empty string. --- jhbuild/utils/packagedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py index 16e38390..09d4b8b5 100644 --- a/jhbuild/utils/packagedb.py +++ b/jhbuild/utils/packagedb.py @@ -84,7 +84,7 @@ class PackageDB: '''Check whether a particular module is installed.''' if not self.entries.has_key(package): return False p_version, p_installed = self.entries[package] - if version: + if version is not None: if version != p_version: return False return True -- 2.11.4.GIT