Fix on_hold value being removed when checking versions

This commit is contained in:
2026-02-20 12:51:14 +02:00
parent 54e192f220
commit a7f751c094
+7
View File
@@ -260,10 +260,17 @@ func checkVersionsFunc(repo string) {
continue continue
} }
// Get current on_hold value
onHold := false
if v, ok := cachedVersions[pkgInfo.Name]; ok {
onHold = v.OnHold
}
// Cache latest version // Cache latest version
cachedVersions[pkgInfo.Name] = CachedVersionEntry{ cachedVersions[pkgInfo.Name] = CachedVersionEntry{
LatestVersion: latestVersion, LatestVersion: latestVersion,
Timestamp: time.Now().UnixMilli(), Timestamp: time.Now().UnixMilli(),
OnHold: onHold,
} }
} }