Skip to content

Commit 53f0d55

Browse files
committed
fix: Remove logic that may slow down lastore-daemon startup
During startup, lastore-daemon invokes the build_system_info script, which in turn fetches a specific property from lastore-daemon's D-Bus service Link: https://gerrit.uniontech.com/c/lastore-daemon/+/274039
1 parent 5a17dd3 commit 53f0d55

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/lastore-daemon/manager_update.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,6 @@ const TimeOnly = "15:04:05"
569569
func (m *Manager) refreshUpdateInfos(sync bool) {
570570
// 检查更新时,同步修改canUpgrade状态;检查更新时需要同步操作
571571
if sync {
572-
// TODO 是否有必要?
573-
if system.IsPrivateLastore {
574-
err := exec.Command("/var/lib/lastore/scripts/build_system_info", "-now").Run()
575-
if err != nil {
576-
logger.Warning(err)
577-
}
578-
}
579572
// 检查更新后,先下载解析coreList,获取必装清单
580573
m.coreList = m.getCoreList(true)
581574
logger.Debug("generateUpdateInfo get coreList:", m.coreList)

0 commit comments

Comments
 (0)