修改代码逻辑
This commit is contained in:
parent
3161c64536
commit
1404d10db2
|
@ -32,6 +32,7 @@ import shutil
|
|||
import apt_pkg
|
||||
from gi.repository import Gio
|
||||
from .filter import UpdateListFilterCache
|
||||
import configparser
|
||||
|
||||
OUTPUT_CONFIG_PATH = apt_pkg.config.find_dir("Kylin-system-updater::OutputConfigDir",
|
||||
'/var/lib/kylin-system-updater')
|
||||
|
@ -246,7 +247,6 @@ class UpdateList():
|
|||
|
||||
#输出白名单的配置
|
||||
def _make_white_config(self,cache,upgrade_data):
|
||||
import configparser
|
||||
try:
|
||||
WHITE_LIST_PATH = OUTPUT_CONFIG_PATH + 'update-white-config.conf'
|
||||
config = configparser.ConfigParser()
|
||||
|
|
Loading…
Reference in New Issue