fix: rust auto-pack incorrectly inserts dylib

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-12-03 14:46:03 +00:00
1 parent 58ed58a087
commit 79a6853b83
1 file changed
+3 -1
+3 -1
View File
@@ -45,7 +45,9 @@ def _autopack_filter_lib(ent) -> bool:
def _autopack_filter_bin(ent) -> bool: def _autopack_filter_bin(ent) -> bool:
return os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False) is_executable_file = os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
is_not_dylib = not (ent.path.endswith(".so") or ent.path.endswith(".dll") or ent.path.endswith(".dylib"))
return is_executable_file and is_not_dylib
def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer): def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer):