mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 02:56: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
|
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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user