[jhbuild] base: Fix lookup of package version
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] base: Fix lookup of package version
- Date: Wed, 22 Jun 2011 18:07:47 +0000 (UTC)
commit 8b0fd88eb07f8dfca708be3091ca0f1f72e64669
Author: Colin Walters <walters verbum org>
Date: Wed Jun 22 09:51:21 2011 -0400
base: Fix lookup of package version
Packages are no longer tuples but objects, so use the "version"
property. While we have the patient open, avoid looking up in the
dictionary twice.
https://bugzilla.gnome.org/show_bug.cgi?id=647231
jhbuild/commands/base.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index 2338d98..af629c5 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -173,9 +173,10 @@ def check_bootstrap_updateness(config):
updated_modules = []
for module in module_set.modules.values():
- if not packagedb.entries.has_key(module.name):
+ pkg = packagedb.entries.get(module.name)
+ if pkg is None:
continue
- p_version = packagedb.entries.get(module.name)[0]
+ p_version = pkg.version
if p_version != module.get_revision():
updated_modules.append(module.name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]