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 _verify_kylinsign = True
if _allow_kylinsign == True and _verify_kylinsign == False: #策略: 阻止 if _allow_kylinsign == True and _verify_kylinsign == False: #策略: 阻止
logging.info("unknown sources apply installation policies: deter") 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: #策略: 警告 elif _allow_kylinsign == True and _verify_kylinsign == True: #策略: 警告
logging.info("unknown sources apply installation policies: warning") logging.info("unknown sources apply installation policies: warning")
elif _allow_kylinsign == False and _verify_kylinsign == False: #策略: 关闭 elif _allow_kylinsign == False and _verify_kylinsign == False: #策略: 关闭
logging.info("unknown sources apply installation policies: close") logging.info("unknown sources apply installation policies: close")
return True,"USI-policy-close" # return True,"USI-policy-close"
else: else:
logging.warning("Unknown sources apply installation policies get failed.") logging.warning("Unknown sources apply installation policies get failed.")