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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 28 00:41:13 CET 2013


Revision: 20226
          http://gar.svn.sourceforge.net/gar/?rev=20226&view=rev
Author:   wahwah
Date:     2013-01-27 23:38:42 +0000 (Sun, 27 Jan 2013)
Log Message:
-----------
checkpkg: Better error message for elfdump

Also, saving the exact output for easier inspection.

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

Modified: csw/mgar/gar/v2/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package.py	2013-01-27 16:48:36 UTC (rev 20225)
+++ csw/mgar/gar/v2/lib/python/inspective_package.py	2013-01-27 23:38:42 UTC (rev 20226)
@@ -280,11 +280,16 @@
 
         stderr = re.sub(ignored_error_re, "", stderr)
         if stderr:
+          with open("/tmp/elfdump_stdout.log", "w") as fd:
+            fd.write(stdout)
+          with open("/tmp/elfdump_stderr.log", "w") as fd:
+            fd.write(stderr)
           msg = ("%s returned one or more errors: %s" % (args, stderr) +
                  "\n\n" +
-                 "ERROR: ldd invocation failed. Please copy this message " +
+                 "ERROR: elfdump invocation failed. Please copy this message " +
                  "and the above messages into your report and send " +
-                 "as path of the error report.")
+                 "as path of the error report. Logs are saved in " +
+                 "/tmp/elfdump_std(out|err).log for your inspection.")
           raise package.Error(msg)
       elfdump_out = stdout.splitlines()
 

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