[jhbuild] jhbuild build: suggest passing the active module list to systeps --install
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] jhbuild build: suggest passing the active module list to systeps --install
- Date: Sun, 1 Dec 2019 16:58:58 +0000 (UTC)
commit 75b39363ebe804c5ef6a33d54ec8389f3b7204e4
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sun Nov 24 12:32:56 2019 +0100
jhbuild build: suggest passing the active module list to systeps --install
In case of "build foo" and foo requires a missing sysdep we currently suggest
running "sysdeps --install" which will install all sysdeps, not just the ones
needed to make "build foo" work.
Instead suggest running "sysdeps --install foo" to only install the required sysdeps.
Fixes #45
jhbuild/commands/base.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index 5e31631b..1a9b14a4 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -248,6 +248,7 @@ class cmd_build(BuildCommand):
return 0
if config.check_sysdeps:
+ install_cmd = 'jhbuild sysdeps --install' + (' ' + ' '.join(args) if args else '')
module_state = module_set.get_module_state(full_module_list)
if not self.required_system_dependencies_installed(module_state):
self.print_system_dependencies(module_state)
@@ -255,7 +256,7 @@ class cmd_build(BuildCommand):
' Install using the command %(cmd)s or to '
'ignore system dependencies use command-line'
' option %(opt)s' \
- % {'cmd' : "'jhbuild sysdeps --install'",
+ % {'cmd' : "'%s'" % install_cmd,
'opt' : '--nodeps'}))
build = jhbuild.frontends.get_buildscript(config, module_list, module_set=module_set)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]