diff --git a/src/termux-create-package b/src/termux-create-package index 9343d9f..483e98a 100755 --- a/src/termux-create-package +++ b/src/termux-create-package @@ -34,7 +34,7 @@ import time import traceback import unicodedata -import importlib +import importlib.util yaml_supported = False try: if importlib.util.find_spec("ruamel.yaml") is not None: @@ -1574,9 +1574,9 @@ def get_effective_mode(current_mode, symbolic, file_type=None): ("o" in clazz and "t" in perm and stat.S_ISVTX) else: new_mode = new_mode & \ - ~("u" in clazz and "s" in perm and stat.S_ISUID) & \ - ~("g" in clazz and "s" in perm and stat.S_ISGID) & \ - ~("o" in clazz and "t" in perm and stat.S_ISVTX) + ~int("u" in clazz and "s" in perm and stat.S_ISUID) & \ + ~int("g" in clazz and "s" in perm and stat.S_ISGID) & \ + ~int("o" in clazz and "t" in perm and stat.S_ISVTX) return new_mode diff --git a/tests/tests_main.py b/tests/tests_main.py index a5eeafb..f114db5 100644 --- a/tests/tests_main.py +++ b/tests/tests_main.py @@ -9,7 +9,7 @@ """ import os -import importlib +import importlib.util import sys