diff options
| author | Fuwn <[email protected]> | 2024-10-12 02:03:35 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-12 02:03:35 +0000 |
| commit | e22b12476ab8182921086e82c0d382b105e3ee3f (patch) | |
| tree | ce1f0008aaf032bebdd0d7fc676c6d8f39fa6e1e /yae.go | |
| parent | feat(yae): force add flag (diff) | |
| download | yae-e22b12476ab8182921086e82c0d382b105e3ee3f.tar.xz yae-e22b12476ab8182921086e82c0d382b105e3ee3f.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) |