[jhbuild] [buildbot] don't choke on MetaModule when detecting changes
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] [buildbot] don't choke on MetaModule when detecting changes
- Date: Mon, 10 Jan 2011 10:25:44 +0000 (UTC)
commit 017c7c1e4a610a9c9b0ec5ebcf40483c2a87cb2b
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Jan 10 11:25:23 2011 +0100
[buildbot] don't choke on MetaModule when detecting changes
jhbuild/buildbot/changes.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/buildbot/changes.py b/jhbuild/buildbot/changes.py
index 9543693..98dc410 100644
--- a/jhbuild/buildbot/changes.py
+++ b/jhbuild/buildbot/changes.py
@@ -132,7 +132,7 @@ class GnomeMaildirSource(MaildirSource):
# some modules may have alternate checkouts under different names, look
# for those, and create appropriate Change objects
for module in self.modules:
- if isinstance(module.branch, GitBranch):
+ if hasattr(module, 'branch') and isinstance(module.branch, GitBranch):
git_module_name = module.branch.module.rsplit('/', 1)[-1]
if module.name != project and git_module_name == project:
change = changes.Change(name, files, comments, isdir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]