aboutsummaryrefslogtreecommitdiff
path: root/yae.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-11 19:03:35 -0700
committerFuwn <[email protected]>2024-10-11 19:03:35 -0700
commit4b6504a63da9dd8db8f62acb33371e63a2c2f696 (patch)
treece1f0008aaf032bebdd0d7fc676c6d8f39fa6e1e /yae.go
parente9e48f2ad4d62ec4953deb2ad189726d7c594b7c (diff)
downloadyae-4b6504a63da9dd8db8f62acb33371e63a2c2f696.tar.xz
yae-4b6504a63da9dd8db8f62acb33371e63a2c2f696.zip
fix(yae): don't mark as updated on same sha256 when forced
Diffstat (limited to 'yae.go')
-rw-r--r--yae.go5
1 files changed, 4 insertions, 1 deletions
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)