[jhbuild] Fix jhbuild autobuild --clean



commit 0df2830eb1dafa80ce7beb676446f74813410aa5
Author: Jon TURNEY <jon turney dronecode org uk>
Date:   Thu Oct 22 13:12:47 2009 +0100

    Fix jhbuild autobuild --clean
    
    'jhbuild autobuild --clean' doesn't clean as clean isn't added to list of targets
    (Other commands achieve this as side-effect of config.set_from_cmdline_options,
    not sure if this is appropriate for autobuild also...)

 jhbuild/commands/autobuild.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/commands/autobuild.py b/jhbuild/commands/autobuild.py
index e5c5931..1bdda28 100644
--- a/jhbuild/commands/autobuild.py
+++ b/jhbuild/commands/autobuild.py
@@ -51,16 +51,13 @@ class cmd_autobuild(Command):
             ])
 
     def run(self, config, options, args, help=None):
+        config.set_from_cmdline_options(options)
         config.buildscript = 'autobuild'
 
         config.autobuild_report_url = None
         config.verbose = False
         config.interact = False
 
-        if options.autogen:
-            config.alwaysautogen = True
-        if options.clean:
-            config.makeclean = True
         if options.reporturl is not None:
             config.autobuild_report_url = options.reporturl
         if options.verbose:



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