Merge branch 'openkylin/nile' of gitee.com:openkylin/kylin-system-updater into openkylin/nile

This commit is contained in:
wangsong 2024-01-30 09:32:32 +08:00
commit 14235d01a7
1 changed files with 2 additions and 2 deletions

View File

@ -769,12 +769,12 @@ def PolicyKit_Authority(details = '', sender = None, InstPolicy = False, authent
_verify_kylinsign = True
if _allow_kylinsign == True and _verify_kylinsign == False: #策略: 阻止
logging.info("unknown sources apply installation policies: deter")
return True,"USI-policy-deter"
# return True,"USI-policy-deter"
elif _allow_kylinsign == True and _verify_kylinsign == True: #策略: 警告
logging.info("unknown sources apply installation policies: warning")
elif _allow_kylinsign == False and _verify_kylinsign == False: #策略: 关闭
logging.info("unknown sources apply installation policies: close")
return True,"USI-policy-close"
# return True,"USI-policy-close"
else:
logging.warning("Unknown sources apply installation policies get failed.")