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

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Tue Jan 1 21:43:55 CET 2013


Revision: 19995
          http://gar.svn.sourceforge.net/gar/?rev=19995&view=rev
Author:   chninkel
Date:     2013-01-01 20:43:54 +0000 (Tue, 01 Jan 2013)
Log Message:
-----------
gar/v2-yann: raise an exception when elfdump or ldd triggers an unexpected error

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

Modified: csw/mgar/gar/v2-yann/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2-yann/lib/python/inspective_package.py	2013-01-01 20:42:15 UTC (rev 19994)
+++ csw/mgar/gar/v2-yann/lib/python/inspective_package.py	2013-01-01 20:43:54 UTC (rev 19995)
@@ -294,8 +294,8 @@
 
         stderr = re.sub(ignored_error_re, "", stderr)
         if stderr:
-          logging.error("%s returned one or more errors: %s", args, stderr)
-          continue
+          msg = "%s returned one or more errors: %s" % (args, stderr)
+          raise package.Error(msg)
       elfdump_out = stdout.splitlines()
 
       symbols = {}
@@ -382,7 +382,7 @@
           ldd_output[binary] = []
           continue
 
-        logging.error("%s returned an error: %s", args, stderr)
+        raise package.Error("%s returned an error: %s" % (args, stderr))
 
       ldd_info = []
       for line in 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