From e22b12476ab8182921086e82c0d382b105e3ee3f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 12 Oct 2024 02:03:35 +0000 Subject: fix(yae): don't mark as updated on same sha256 when forced --- yae.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yae.go b/yae.go index a592a29..258c45f 100644 --- a/yae.go +++ b/yae.go @@ -350,8 +350,11 @@ func updateSource(sources *Sources, name string, source Source, show bool, force fmt.Println("updated version for", name, "from", source.Version, "to", tag) } + if tag != source.Version { + updated = true + } + source.Version = tag - updated = true if strings.Contains(source.URLTemplate, "{version}") { source.URL = strings.ReplaceAll(source.URLTemplate, "{version}", source.Version) -- cgit v1.2.3