[jhbuild] Propagate the returncode on terminal's CommandError (GNOME Bug 655340)



commit 3d8c9368f55f01f9b178c49f70c169ed41b42e36
Author: Craig Keogh <cskeogh adam com au>
Date:   Wed Aug 24 22:07:26 2011 +0930

    Propagate the returncode on terminal's CommandError (GNOME Bug 655340)
    
    This ensures we actually signal the error.

 jhbuild/frontends/terminal.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index 55e124c..1650984 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -250,7 +250,7 @@ class TerminalBuildScript(buildscript.BuildScript):
                 if self.config.quiet_mode:
                     print ''.join(output)
                 raise CommandError(_('########## Error running %s')
-                                   % print_args['command'])
+                                   % print_args['command'], p.returncode)
         except OSError:
             # it could happen on a really badly-timed ctrl-c (see bug 551641)
             raise CommandError(_('########## Error running %s')



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