Commit ebdd24ed authored by Łukasz Nowak's avatar Łukasz Nowak

- fix condition and raise explanatory exception


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40290 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5630b75c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment