[csw-devel] SF.net SVN: gar:[12100] csw/mgar/gar/v2/lib/python/shell.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Dec 27 14:47:48 CET 2010


Revision: 12100
          http://gar.svn.sourceforge.net/gar/?rev=12100&view=rev
Author:   wahwah
Date:     2010-12-27 13:47:48 +0000 (Mon, 27 Dec 2010)

Log Message:
-----------
checkpkg: More diagnostics for shell commands

Displaying stdout and stderr of failed shell commands.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/shell.py

Modified: csw/mgar/gar/v2/lib/python/shell.py
===================================================================
--- csw/mgar/gar/v2/lib/python/shell.py	2010-12-27 12:28:01 UTC (rev 12099)
+++ csw/mgar/gar/v2/lib/python/shell.py	2010-12-27 13:47:48 UTC (rev 12100)
@@ -20,5 +20,7 @@
     else:
       retcode = subprocess.call(args)
     if retcode:
+      logging.critical(stdout)
+      logging.critical(stderr)
       raise Error("Running %s has failed." % repr(args))
     return retcode


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list