Skip to content

Commit 76b78ac

Browse files
committed
Keep order for libraries
1 parent eb8773a commit 76b78ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/auditwheel/lddtree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ def ldd(
573573
if any(fnmatch(str(realpath), e) for e in exclude):
574574
log.info("Excluding %s", realpath)
575575
_excluded_libs.add(soname)
576+
_all_libs.pop(soname)
576577
continue
577578
dependency = ldd(realpath, root, prefix, ldpaths, fullpath, exclude, _all_libs)
578579
_all_libs[soname] = DynamicLibrary(
@@ -592,5 +593,5 @@ def ldd(
592593
frozenset(needed - _excluded_libs),
593594
tuple(rpaths),
594595
tuple(runpaths),
595-
{k: v for k, v in _all_libs.items() if k not in _excluded_libs},
596+
_all_libs,
596597
)

0 commit comments

Comments
 (0)