mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 11:06:11 +00:00
Fix on_hold value being removed when checking versions
This commit is contained in:
@@ -260,10 +260,17 @@ func checkVersionsFunc(repo string) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Get current on_hold value
|
||||
onHold := false
|
||||
if v, ok := cachedVersions[pkgInfo.Name]; ok {
|
||||
onHold = v.OnHold
|
||||
}
|
||||
|
||||
// Cache latest version
|
||||
cachedVersions[pkgInfo.Name] = CachedVersionEntry{
|
||||
LatestVersion: latestVersion,
|
||||
Timestamp: time.Now().UnixMilli(),
|
||||
OnHold: onHold,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user