From c11ffd147f4b349bdbca005d8c06a74bb3b608c0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 7 Sep 2022 20:33:31 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=9B=86=E5=B8=82=E5=B7=B2=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=8C=85=E7=89=88=E6=9C=AC=E5=88=A4=E6=96=AD=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=A4=A7=E5=B0=8F=E6=AF=94?= =?UTF-8?q?=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/bazaar/package.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.go index 43eef9767..3d7fa0ac5 100644 --- a/kernel/bazaar/package.go +++ b/kernel/bazaar/package.go @@ -187,7 +187,7 @@ func isOutdatedTheme(theme *Theme, bazaarThemes []*Theme) bool { } for _, pkg := range bazaarThemes { - if theme.URL == pkg.URL && theme.Name == pkg.Name && theme.Author == pkg.Author && theme.Version != pkg.Version { + if theme.URL == pkg.URL && theme.Name == pkg.Name && theme.Author == pkg.Author && theme.Version < pkg.Version { theme.RepoHash = pkg.RepoHash return true } @@ -207,7 +207,7 @@ func isOutdatedIcon(icon *Icon, bazaarIcons []*Icon) bool { } for _, pkg := range bazaarIcons { - if icon.URL == pkg.URL && icon.Name == pkg.Name && icon.Author == pkg.Author && icon.Version != pkg.Version { + if icon.URL == pkg.URL && icon.Name == pkg.Name && icon.Author == pkg.Author && icon.Version < pkg.Version { icon.RepoHash = pkg.RepoHash return true } @@ -227,7 +227,7 @@ func isOutdatedWidget(widget *Widget, bazaarWidgets []*Widget) bool { } for _, pkg := range bazaarWidgets { - if widget.URL == pkg.URL && widget.Name == pkg.Name && widget.Author == pkg.Author && widget.Version != pkg.Version { + if widget.URL == pkg.URL && widget.Name == pkg.Name && widget.Author == pkg.Author && widget.Version < pkg.Version { widget.RepoHash = pkg.RepoHash return true } @@ -247,7 +247,7 @@ func isOutdatedTemplate(template *Template, bazaarTemplates []*Template) bool { } for _, pkg := range bazaarTemplates { - if template.URL == pkg.URL && template.Name == pkg.Name && template.Author == pkg.Author && template.Version != pkg.Version { + if template.URL == pkg.URL && template.Name == pkg.Name && template.Author == pkg.Author && template.Version < pkg.Version { template.RepoHash = pkg.RepoHash return true }