Commit ccc7b0cd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

check develop-eggs directory too in AssertElfLinkedInternally.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77464677
...@@ -1542,7 +1542,10 @@ class AssertFile(AssertSoftwareMixin): ...@@ -1542,7 +1542,10 @@ class AssertFile(AssertSoftwareMixin):
class AssertElfLinkedInternally(AssertSoftwareMixin): class AssertElfLinkedInternally(AssertSoftwareMixin):
def test(self): def test(self):
result_dict = {} result_dict = {}
root = os.path.join(os.path.abspath(os.curdir), 'parts') parts_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
develop_eggs_dir = os.path.join(os.path.abspath(os.curdir), 'develop-eggs')
for root in (parts_dir, develop_eggs_dir):
for root in (develop_eggs_dir,):
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 # skip some not needed places
...@@ -1550,7 +1553,7 @@ class AssertElfLinkedInternally(AssertSoftwareMixin): ...@@ -1550,7 +1553,7 @@ class AssertElfLinkedInternally(AssertSoftwareMixin):
continue 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(parts_dir) \
and not any([q.startswith(k) for k in ACCEPTABLE_GLOBAL_LIB_LIST])] and not any([q.startswith(k) for k in ACCEPTABLE_GLOBAL_LIB_LIST])]
if len(bad_link_list): if len(bad_link_list):
result_dict[filename] = bad_link_list result_dict[filename] = bad_link_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