软件商店不验签

This commit is contained in:
luoxueyi 2023-01-05 11:09:23 +08:00
parent 805d11b340
commit ad3e05fc77
1 changed files with 3 additions and 1 deletions

View File

@ -445,7 +445,9 @@ class UpdateManager():
sender_name = get_proc_from_dbus_name(sender)
caller = get_caller_from_enum(sender_name)
caller_trans = get_source_name_from_enum(sender_name)
if deb_verify(deb_path) != 0: #验签失败,提权
if source == "kylin-software-center":
logging.info("caller : %s.",source)
else:
(status,error_string) = PolicyKit_Authority(caller_trans+_(" requires authentication to install software packages."),sender)
if not status:
self.dbusController.InstalldebFinished(False,error_string,'')