forked from rosa/hakurei
internal/rosa: annotate blocked updates
These situations, while unfortunate, are inevitable at a larger scale. This change enables annotation and optional hiding of blocked updates. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -5,6 +5,8 @@ package openssl {
|
||||
// strange malformed tags treated as pre-releases in Anitya
|
||||
latest = anityaFallback;
|
||||
|
||||
block = "python";
|
||||
|
||||
version# = "3.6.2";
|
||||
source = remoteGitHubRelease {
|
||||
suffix = "openssl/openssl";
|
||||
|
||||
@@ -96,6 +96,8 @@ type Metadata struct {
|
||||
//
|
||||
// [Anitya]: https://release-monitoring.org/
|
||||
ID int `json:"-"`
|
||||
// Maintainer-facing reason of blocked update.
|
||||
Blocked string `json:"block,omitempty"`
|
||||
|
||||
// Whether to exclude from exported functions.
|
||||
Exclude bool `json:"exclude,omitempty"`
|
||||
@@ -944,6 +946,7 @@ func (ctx *evalContext) pf(
|
||||
k("version"): &meta.Version,
|
||||
k("exclude"): &meta.Exclude,
|
||||
k("anitya"): &anitya,
|
||||
k("block"): &meta.Blocked,
|
||||
k("latest"): &meta.latest,
|
||||
|
||||
k("writable"): &attr.Writable,
|
||||
|
||||
Reference in New Issue
Block a user