[entropy.qa] slightly improve libraries_test

ldpaths set must be complete before dealing with reverse symlinks map
This commit is contained in:
Fabio Erculiani
2009-07-07 12:43:42 +02:00
parent e26bdd3221
commit 01e4aea66f

View File

@@ -297,6 +297,11 @@ class QAInterface:
ldpaths = set(self.entropyTools.collect_linker_paths())
ldpaths |= self.entropyTools.collect_paths()
# some crappy packages put shit here too
ldpaths.add("/usr/share")
# always force /usr/libexec too
ldpaths.add("/usr/libexec")
# remove duplicated dirs (due to symlinks) to speed up scanning
for real_dir in reverse_symlink_map.keys():
syms = reverse_symlink_map[real_dir]
@@ -316,11 +321,6 @@ class QAInterface:
)
break
# some crappy packages put shit here too
ldpaths.add("/usr/share")
# always force /usr/libexec too
ldpaths.add("/usr/libexec")
executables = set()
total = len(ldpaths)
count = 0