fix config reload function

This commit is contained in:
shenyafeng 2022-07-19 14:39:05 +08:00
parent d1349476fe
commit 6f02044323
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ def reload_options_config():
if apt_pkg.config.find_b("APT::Install-Suggests",False) == True:
apt_pkg.config.clear("APT::Install-Suggests")
if apt_pkg.config.find("Dir::Etc::sourceparts","")!="":
apt_pkg.config["Dir::Etc::sourceparts"]="":
apt_pkg.config["Dir::Etc::sourceparts"]=""
apt_pkg.init_system()
def get_default_version():

View File

@ -129,7 +129,7 @@ def reload_options_config():
if apt_pkg.config.find_b("APT::Install-Suggests",False) == True:
apt_pkg.config.clear("APT::Install-Suggests")
if apt_pkg.config.find("Dir::Etc::sourceparts","")!="":
apt_pkg.config["Dir::Etc::sourceparts"]="":
apt_pkg.config["Dir::Etc::sourceparts"]=""
apt_pkg.init_system()
def is_dpkg_journal_dirty():