Skip to content

Commit 8b5df95

Browse files
authored
Update lddtree.py
1 parent 40f910f commit 8b5df95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auditwheel/lddtree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ def ldd(
565565
_excluded_libs.add(soname)
566566
continue
567567
realpath, fullpath = find_lib(platform, soname, all_ldpaths, root)
568+
if soname not in _all_libs:
569+
_all_libs[soname] = DynamicLibrary(soname, fullpath, realpath)
568570
if realpath is None:
569571
log.info("Could not locate %s, skipping.", soname)
570572
continue
571573
if any(fnmatch(str(realpath), e) for e in exclude):
572574
log.info("Excluding %s", realpath)
573575
_excluded_libs.add(soname)
574576
continue
575-
if soname not in _all_libs:
576-
_all_libs[soname] = DynamicLibrary(soname, fullpath, realpath)
577577
dependency = ldd(realpath, root, prefix, ldpaths, fullpath, exclude, _all_libs)
578578
_all_libs[soname] = DynamicLibrary(
579579
soname,

0 commit comments

Comments
 (0)