[Erp5-report] r40290 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 16 09:56:02 CET 2010


Author: luke
Date: Tue Nov 16 09:56:01 2010
New Revision: 40290

URL: http://svn.erp5.org?rev=40290&view=rev
Log:
 - fix condition and raise explanatory exception

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40290&r1=40289&r2=40290&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Tue Nov 16 09:56:01 2010
@@ -53,8 +53,8 @@ def readElfAsDict(f):
       runpath_list = [q.rstrip('/') for q in l.split(':',1)[1].strip(' []').split(':')]
   if len(runpath_list) == 0:
     runpath_list = rpath_list
-  elif len(rpath_list) != 0:
-    raise ValueError(rpath_list != runpath_list)
+  elif len(rpath_list) != 0 and runpath_list != rpath_list:
+    raise ValueError('RPATH and RUNPATH are different.')
   return dict(
     library_list=sorted(library_list),
     runpath_list=sorted(runpath_list)




More information about the Erp5-report mailing list