jhbuild r1950 - in trunk: . jhbuild/commands



Author: fpeters
Date: Mon Mar 17 12:24:14 2008
New Revision: 1950
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1950&view=rev

Log:
* jhbuild/commands/bootstrap.py: inherit bootstrap command from build
command, to gain all interesting parameters.  (closes: #522939)



Modified:
   trunk/ChangeLog
   trunk/jhbuild/commands/bootstrap.py

Modified: trunk/jhbuild/commands/bootstrap.py
==============================================================================
--- trunk/jhbuild/commands/bootstrap.py	(original)
+++ trunk/jhbuild/commands/bootstrap.py	Mon Mar 17 12:24:14 2008
@@ -23,19 +23,18 @@
 import jhbuild.moduleset
 import jhbuild.frontends
 from jhbuild.commands import Command, register_command
+from jhbuild.commands.base import cmd_build
 
-class cmd_bootstrap(Command):
+class cmd_bootstrap(cmd_build):
     """Build required support tools"""
 
     name = 'bootstrap'
-    usage_args = ''
 
     def run(self, config, options, args):
+        config.moduleset = 'bootstrap'
         # load the bootstrap module set
-        module_set = jhbuild.moduleset.load(config, 'bootstrap')
-        module_list = module_set.get_module_list(['meta-bootstrap'], config.skip)
-
-        build = jhbuild.frontends.get_buildscript(config, module_list)
-        build.build()
+        if not args:
+            args = ['meta-bootstrap']
+        return cmd_build.run(self, config, options, args)
 
 register_command(cmd_bootstrap)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]