[jhbuild] Fix --in-[checkout|build]dir when passing no args to the `run' command
- From: Emanuele Aina <emaaa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Fix --in-[checkout|build]dir when passing no args to the `run' command
- Date: Wed, 10 Jul 2013 14:23:13 +0000 (UTC)
commit 12b85ab2bbe5d55a26dc7c23c52f7cf7a7e93952
Author: Emanuele Aina <emanuele aina collabora com>
Date: Mon May 20 17:21:07 2013 +0100
Fix --in-[checkout|build]dir when passing no args to the `run' command
Fix `jhbuild run --in-checkoutdir=glib' and let it fail properly instead
of raising an exception.
https://bugzilla.gnome.org/show_bug.cgi?id=700731
jhbuild/commands/base.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index 28833a0..2acccfc 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -376,8 +376,7 @@ class cmd_run(Command):
if options.in_builddir:
module_set = jhbuild.moduleset.load(config)
try:
- module_list = [module_set.get_module(options.in_builddir, ignore_case = True)
- for modname in args]
+ module_list = [module_set.get_module(options.in_builddir, ignore_case = True)]
except KeyError, e:
raise FatalError(_("A module called '%s' could not be found.") % e)
@@ -393,8 +392,7 @@ class cmd_run(Command):
elif options.in_checkoutdir:
module_set = jhbuild.moduleset.load(config)
try:
- module_list = [module_set.get_module(options.in_checkoutdir, ignore_case = True)
- for modname in args]
+ module_list = [module_set.get_module(options.in_checkoutdir, ignore_case = True)]
except KeyError, e:
raise FatalError(_("A module called '%s' could not be found.") % e)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]