Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390

Danield793155e5514
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go
index 573d4cf742..6ec935baf3 100644
--- a/kernel/model/bazzar.go
+++ b/kernel/model/bazzar.go
@@ -35,27 +35,52 @@ func UpdatedPackages(frontend string) (plugins []*bazaar.Plugin, widgets []*baza
wg.Add(5)
go func() {
defer wg.Done()
- plugins = InstalledPlugins(frontend, "")
+ tmp := InstalledPlugins(frontend, "")
+ for _, plugin := range tmp {
+ if plugin.Outdated {
+ plugins = append(plugins, plugin)
+ }
+ }
}()
go func() {
defer wg.Done()
- widgets = InstalledWidgets("")
+ tmp := InstalledWidgets("")
+ for _, widget := range tmp {
+ if widget.Outdated {
+ widgets = append(widgets, widget)
+ }
+ }
}()
go func() {
defer wg.Done()
- icons = InstalledIcons("")
+ tmp := InstalledIcons("")
+ for _, icon := range tmp {
+ if icon.Outdated {
+ icons = append(icons, icon)
+ }
+ }
}()
go func() {
defer wg.Done()
- themes = InstalledThemes("")
+ tmp := InstalledThemes("")
+ for _, theme := range tmp {
+ if theme.Outdated {
+ themes = append(themes, theme)
+ }
+ }
}()
go func() {
defer wg.Done()
- templates = InstalledTemplates("")
+ tmp := InstalledTemplates("")
+ for _, template := range tmp {
+ if template.Outdated {
+ templates = append(templates, template)
+ }
+ }
}()
wg.Wait()