mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
a78b1cd22d
commit
3cb8e60910
1 changed files with 5 additions and 5 deletions
|
|
@ -611,7 +611,7 @@ func isOutdatedTheme(theme *Theme, bazaarThemes []*Theme) bool {
|
|||
}
|
||||
|
||||
for _, pkg := range bazaarThemes {
|
||||
if theme.URL == pkg.URL && theme.Name == pkg.Name && 0 > semver.Compare("v"+theme.Version, "v"+pkg.Version) {
|
||||
if theme.Name == pkg.Name && 0 > semver.Compare("v"+theme.Version, "v"+pkg.Version) {
|
||||
theme.RepoHash = pkg.RepoHash
|
||||
return true
|
||||
}
|
||||
|
|
@ -631,7 +631,7 @@ func isOutdatedIcon(icon *Icon, bazaarIcons []*Icon) bool {
|
|||
}
|
||||
|
||||
for _, pkg := range bazaarIcons {
|
||||
if icon.URL == pkg.URL && icon.Name == pkg.Name && 0 > semver.Compare("v"+icon.Version, "v"+pkg.Version) {
|
||||
if icon.Name == pkg.Name && 0 > semver.Compare("v"+icon.Version, "v"+pkg.Version) {
|
||||
icon.RepoHash = pkg.RepoHash
|
||||
return true
|
||||
}
|
||||
|
|
@ -651,7 +651,7 @@ func isOutdatedPlugin(plugin *Plugin, bazaarPlugins []*Plugin) bool {
|
|||
}
|
||||
|
||||
for _, pkg := range bazaarPlugins {
|
||||
if plugin.URL == pkg.URL && plugin.Name == pkg.Name && 0 > semver.Compare("v"+plugin.Version, "v"+pkg.Version) {
|
||||
if plugin.Name == pkg.Name && 0 > semver.Compare("v"+plugin.Version, "v"+pkg.Version) {
|
||||
plugin.RepoHash = pkg.RepoHash
|
||||
return true
|
||||
}
|
||||
|
|
@ -671,7 +671,7 @@ func isOutdatedWidget(widget *Widget, bazaarWidgets []*Widget) bool {
|
|||
}
|
||||
|
||||
for _, pkg := range bazaarWidgets {
|
||||
if widget.URL == pkg.URL && widget.Name == pkg.Name && 0 > semver.Compare("v"+widget.Version, "v"+pkg.Version) {
|
||||
if widget.Name == pkg.Name && 0 > semver.Compare("v"+widget.Version, "v"+pkg.Version) {
|
||||
widget.RepoHash = pkg.RepoHash
|
||||
return true
|
||||
}
|
||||
|
|
@ -691,7 +691,7 @@ func isOutdatedTemplate(template *Template, bazaarTemplates []*Template) bool {
|
|||
}
|
||||
|
||||
for _, pkg := range bazaarTemplates {
|
||||
if template.URL == pkg.URL && template.Name == pkg.Name && 0 > semver.Compare("v"+template.Version, "v"+pkg.Version) {
|
||||
if template.Name == pkg.Name && 0 > semver.Compare("v"+template.Version, "v"+pkg.Version) {
|
||||
template.RepoHash = pkg.RepoHash
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue