diff options
| author | Fuwn <[email protected]> | 2024-10-11 19:03:35 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-11 19:03:35 -0700 |
| commit | 4b6504a63da9dd8db8f62acb33371e63a2c2f696 (patch) | |
| tree | ce1f0008aaf032bebdd0d7fc676c6d8f39fa6e1e /yae.go | |
| parent | e9e48f2ad4d62ec4953deb2ad189726d7c594b7c (diff) | |
| download | yae-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.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |