[jhbuild] buildscript: Avoid failing if we don't have a manifest for a package yet
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] buildscript: Avoid failing if we don't have a manifest for a package yet
- Date: Wed, 13 Jul 2011 13:41:58 +0000 (UTC)
commit b9fa6e3078589d023c05c4247466b71becc9f47b
Author: Colin Walters <walters verbum org>
Date: Wed Jul 13 09:41:57 2011 -0400
buildscript: Avoid failing if we don't have a manifest for a package yet
https://bugzilla.gnome.org/show_bug.cgi?id=654522
jhbuild/frontends/buildscript.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/frontends/buildscript.py b/jhbuild/frontends/buildscript.py
index 513ef9f..0a01d38 100644
--- a/jhbuild/frontends/buildscript.py
+++ b/jhbuild/frontends/buildscript.py
@@ -216,6 +216,12 @@ class BuildScript:
if self.packagedb.installdate(module_name) is None:
continue
pkg = self.packagedb.entries[module_name]
+
+ # Skip this if the packagedb doesn't have a manifest; this
+ # can happen with old packagedb.xml files.
+ if pkg.manifiest is None:
+ continue
+
if trig.matches(pkg.manifest):
triggers_to_run.append(trig)
for trig in triggers_to_run:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]