Skip to content

Commit 20a249a

Browse files
committed
determinestic is good
1 parent c97eb19 commit 20a249a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/auditwheel/lddtree.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from __future__ import annotations
1515

16+
from collections import OrderedDict
1617
import errno
1718
import functools
1819
import glob
@@ -441,7 +442,7 @@ def ldd(
441442
"""
442443
_first = _all_libs is None
443444
if _all_libs is None:
444-
_all_libs = {}
445+
_all_libs = OrderedDict()
445446

446447
log.debug("ldd(%s)", path)
447448

@@ -554,7 +555,7 @@ def ldd(
554555
+ ldpaths["interp"]
555556
)
556557
_excluded_libs: set[str] = set()
557-
for soname in needed:
558+
for soname in sorted(needed):
558559
if soname in _all_libs:
559560
continue
560561
if soname in _excluded_libs:

0 commit comments

Comments
 (0)