Skip to content

Commit bc388eb

Browse files
authored
fix: remove environment check before source update (#363)
Bug: https://pms.uniontech.com/bug-view-356163.html
1 parent 5bbbbb9 commit bc388eb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/lastore-daemon/manager_update.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,6 @@ func (m *Manager) updateSource(sender dbus.Sender) (*Job, error) {
220220
m.updateSourceOnce = true
221221
m.PropsMu.Unlock()
222222
if len(m.UpgradableApps) > 0 {
223-
if m.config.IntranetUpdate {
224-
status, msg := m.beforeUpdateSourceEnvCheck()
225-
if !status {
226-
job.retry = 0
227-
return &system.JobError{
228-
ErrType: system.ErrorDpkgError,
229-
ErrDetail: fmt.Sprintf("before update env check failed: %s", msg),
230-
}
231-
}
232-
}
233-
234223
go m.reportLog(updateStatusReport, true, "")
235224
// 开启自动下载时触发自动下载,发自动下载通知,不发送可更新通知;
236225
// 关闭自动下载时,发可更新的通知;

0 commit comments

Comments
 (0)