[jhbuild] Fix testmodule
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Fix testmodule
- Date: Wed, 28 Apr 2010 11:22:10 +0000 (UTC)
commit 53e705170810190aecffcc7290f1d5b559830155
Author: Jon TURNEY <jon turney dronecode org uk>
Date: Mon Mar 15 14:10:06 2010 +0000
Fix testmodule
Trying to build a testmodule fails with a traceback ending with
File "/usr/local/jhbuild/jhbuild/modtypes/testmodule.py", line 370, in parse_testmodule
after=after, suggests=suggests, tested_pkgs=tested_pkgs)
TypeError: __init__() got an unexpected keyword argument 'suggests'
Remove the suggests argument to match the actual signature of __init__
Note this doesn't quite align with the documentation, which appears
to say that <suggests> is not permitted in a <testmodule> element.
This change has the effect of permitting <suggests> but ignoring
the content.
jhbuild/modtypes/testmodule.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/modtypes/testmodule.py b/jhbuild/modtypes/testmodule.py
index d47e568..7456bdc 100644
--- a/jhbuild/modtypes/testmodule.py
+++ b/jhbuild/modtypes/testmodule.py
@@ -344,6 +344,6 @@ def parse_testmodule(node, config, uri, repositories, default_repo):
branch = get_branch(node, repositories, default_repo, config)
tested_pkgs = get_tested_packages(node)
return TestModule(id, branch, test_type, dependencies=dependencies,
- after=after, suggests=suggests, tested_pkgs=tested_pkgs)
+ after=after, tested_pkgs=tested_pkgs)
register_module_type('testmodule', parse_testmodule)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]