Commit 0b4ab55d authored by Łukasz Nowak's avatar Łukasz Nowak

- skip some known to contain wrong links paths


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40494 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7589b157
...@@ -60,6 +60,11 @@ ACCEPTABLE_GLOBAL_LIB_LIST = ( ...@@ -60,6 +60,11 @@ ACCEPTABLE_GLOBAL_LIB_LIST = (
'linux-vdso.so', 'linux-vdso.so',
) )
SKIP_PART_LIST = (
'parts/boost-lib-download',
'parts/openoffice-bin',
'parts/openoffice-bin__unpack__',
)
def getCleanList(s): def getCleanList(s):
"""Converts free form string separated by whitespaces to python list""" """Converts free form string separated by whitespaces to python list"""
return sorted([q.strip() for q in s.split() if len(q.strip()) > 0]) return sorted([q.strip() for q in s.split() if len(q.strip()) > 0])
...@@ -1417,6 +1422,9 @@ class AssertElfLinkedInternally(AssertSoftwareMixin): ...@@ -1417,6 +1422,9 @@ class AssertElfLinkedInternally(AssertSoftwareMixin):
root = os.path.join(os.path.abspath(os.curdir), 'parts') root = os.path.join(os.path.abspath(os.curdir), 'parts')
for dirpath, dirlist, filelist in os.walk(root): for dirpath, dirlist, filelist in os.walk(root):
for filename in filelist: for filename in filelist:
# skip some not needed places
if any([q in dirpath for q in SKIP_PART_LIST]):
continue
filename = os.path.join(dirpath, filename) filename = os.path.join(dirpath, filename)
link_list = readLddInfoList(filename) link_list = readLddInfoList(filename)
bad_link_list = [q for q in link_list if not q.startswith(root) \ bad_link_list = [q for q in link_list if not q.startswith(root) \
......
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