From 1690f400d995584d447095e567b87408c422b9f2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 3 Sep 2022 23:25:45 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E9=9B=86=E5=B8=82?= =?UTF-8?q?=E5=B7=B2=E4=B8=8B=E8=BD=BD=E5=8C=85=E6=9B=B4=E6=96=B0=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/5807?= 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 5f67adcb1..5a000249a 100644 --- a/kernel/bazaar/package.go +++ b/kernel/bazaar/package.go @@ -178,7 +178,7 @@ func isOutdatedTheme(theme *Theme, bazaarThemes []*Theme) bool { } for _, pkg := range bazaarThemes { - if theme.URL == pkg.URL && 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 } @@ -192,7 +192,7 @@ func isOutdatedIcon(icon *Icon, bazaarIcons []*Icon) bool { } for _, pkg := range bazaarIcons { - if icon.URL == pkg.URL && 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 } @@ -206,7 +206,7 @@ func isOutdatedWidget(widget *Widget, bazaarWidgets []*Widget) bool { } for _, pkg := range bazaarWidgets { - if widget.URL == pkg.URL && 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 } @@ -220,7 +220,7 @@ func isOutdatedTemplate(template *Template, bazaarTemplates []*Template) bool { } for _, pkg := range bazaarTemplates { - if template.URL == pkg.URL && 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 }