pisi/actionsapi/cmaketools.py: If both -v and -d parameters are

+        given, pass VERBOSE=1 parameter to make command. This results printing
        commands in make to the screen in addition to the colorful cmake progress lines.
This commit is contained in:
Gökçen Eraslan
2009-01-09 13:12:24 +00:00
parent d359a9827b
commit 0e267f1627
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
2009-01-09 Gökçen Eraslan <gokcen@pardus.org.tr>
* pisi/actionsapi/cmaketools.py: If both -v and -d parameters are
given, pass VERBOSE=1 parameter to make command. This results printing
commands in make to the screen in addition to the colorful cmake progress lines.
2009-01-07 Faik Uygur <faik@pardus.org.tr> 2009-01-07 Faik Uygur <faik@pardus.org.tr>
* pisi-2.1.1 * pisi-2.1.1
+6 -1
View File
@@ -70,7 +70,12 @@ def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), s
def make(parameters = ''): def make(parameters = ''):
'''build source with given parameters''' '''build source with given parameters'''
if can_access_file('Makefile'): if can_access_file('Makefile'):
if system('make %s %s' % (get.makeJOBS(), parameters)): if ctx.config.get_option("verbose") and ctx.config.get_option("debug"):
command = 'make VERBOSE=1 %s %s' % (get.makeJOBS(), parameters)
else:
command = 'make %s %s' % (get.makeJOBS(), parameters)
if system(command):
raise MakeError(_('Make failed.')) raise MakeError(_('Make failed.'))
else: else:
raise InstallError(_('No Makefile found.')) raise InstallError(_('No Makefile found.'))