删除错误代码
This commit is contained in:
parent
62012db6b3
commit
57547b3525
|
@ -17,8 +17,6 @@ gettext.bindtextdomain('kylin-system-updater', '/usr/share/locale')
|
||||||
gettext.textdomain('kylin-system-updater')
|
gettext.textdomain('kylin-system-updater')
|
||||||
_ = gettext.gettext
|
_ = gettext.gettext
|
||||||
|
|
||||||
import time
|
|
||||||
from SystemUpdater.Core.utils import (unLockedEnableShutdown,LockedPreventShutdown)
|
|
||||||
#定义日志的格式
|
#定义日志的格式
|
||||||
FORMAT = '%(asctime)-15s %(levelname)s:%(message)s'
|
FORMAT = '%(asctime)-15s %(levelname)s:%(message)s'
|
||||||
|
|
||||||
|
@ -78,7 +76,4 @@ if __name__ == "__main__":
|
||||||
if app.configs.getWithDefault("SystemStatus", "isabnormalreboot", False) == True:
|
if app.configs.getWithDefault("SystemStatus", "isabnormalreboot", False) == True:
|
||||||
app.start_update()
|
app.start_update()
|
||||||
|
|
||||||
LockedPreventShutdown()
|
|
||||||
time.sleep(10)
|
|
||||||
unLockedEnableShutdown()
|
|
||||||
app.run()
|
app.run()
|
Loading…
Reference in New Issue