[jhbuild] Fixed crash in CMake clean



commit e340c423db503cd3104c4b2dfe718664afd4b9a5
Author: Nicolas Dufresne <nicolas dufresne collabora co uk>
Date:   Fri Sep 10 14:59:59 2010 -0400

    Fixed crash in CMake clean
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629316

 jhbuild/modtypes/cmake.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/modtypes/cmake.py b/jhbuild/modtypes/cmake.py
index 0c86a49..ad02632 100644
--- a/jhbuild/modtypes/cmake.py
+++ b/jhbuild/modtypes/cmake.py
@@ -104,7 +104,8 @@ class CMakeModule(Package, DownloadableModule):
 
     def do_clean(self, buildscript):
         buildscript.set_action(_('Cleaning'), self)
-        cmd = '%s %s clean' % (os.environ.get('MAKE', 'make'), makeargs)
+        builddir = self.get_builddir(buildscript)
+        cmd = '%s %s clean' % (os.environ.get('MAKE', 'make'), self.get_makeargs())
         buildscript.execute(cmd, cwd = builddir,
                 extra_env = self.extra_env)
     do_clean.depends = [PHASE_CONFIGURE]



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