This commit is contained in:
Luoxueyi 2022-09-15 15:31:34 +08:00
parent 43ce03caa9
commit 7b04a901dc
2 changed files with 4 additions and 15 deletions

View File

@ -1,6 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/python3
from types import coroutine
import apt import apt
import apt_pkg import apt_pkg
import fnmatch import fnmatch
@ -13,22 +11,13 @@ import string
import subprocess import subprocess
import json import json
try: try:
from typing import AbstractSet, DefaultDict, Dict, Iterable, List from typing import List
# AbstractSet # pyflakes from typing import Union
# DefaultDict # pyflakes
# Dict # pyflakes
# Iterable # pyflakes
# List # pyflakes
from typing import Set, Tuple, Union
# Set # pyflakes
# Tuple # pyflakes
except ImportError: except ImportError:
pass pass
from gettext import gettext as _ from gettext import gettext as _
import apt
import apt_pkg
SYSTEM_UPDATER_CORE_LIB_PATH="/usr/share/kylin-system-updater/" SYSTEM_UPDATER_CORE_LIB_PATH="/usr/share/kylin-system-updater/"
sys.path.append(SYSTEM_UPDATER_CORE_LIB_PATH) sys.path.append(SYSTEM_UPDATER_CORE_LIB_PATH)
from SystemUpdater.Core.utils import get_config_patch from SystemUpdater.Core.utils import get_config_patch

View File

@ -11,5 +11,5 @@ formats = bztar
[nosetests] [nosetests]
match=test match=test
[install] # [install]
skip-build=0 # skip-build=0