Merge branch 'backend_manual' of gitlab2.kylin.com:kylinos-src/update-manager-group/kylin-system-updater into backend_manual

This commit is contained in:
wangsong 2022-10-27 17:25:38 +08:00
commit 136bddd211
1 changed files with 3 additions and 3 deletions

View File

@ -403,15 +403,15 @@ class UpdateManagerDbusController(dbus.service.Object):
os.environ["LANGUAGE"] = user_lang
self.parent.aptd_lang_switch = True
reload(enums)
purge_list = [str(pkg) for pkg in _purge_list]
sender_name = get_proc_from_dbus_name(sender)
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' DistPurgePackages Sender:%s and purge list is:%s...',sender_name,_purge_list)
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' DistPurgePackages Sender:%s and purge list is:%s...',sender_name, purge_list)
(status, details) = PolicyKit_Authority(get_source_name_from_enum(sender_name)+_(" requires authentication to uninstall software packages."), sender)
if not status:
self.PurgePackagesFinished(False,details,'')
return self.RETURN_UNKNOWN_CODE,details
purge_list = [str(pkg) for pkg in _purge_list]
#目前只有360使用这个环境变量 当其他包也使用时 可以将这个权限放开
if "360epp" in purge_list:
#需要对aptdeamon加这两个环境变量 才可以提示弹窗