Merge pull request '[GITEA] Generate install if condition for Alpine' (#2176) from gusted/forgejo-alpine-install-if into forgejo-dependency
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2176 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
f52e7599fc
1 changed files with 3 additions and 0 deletions
|
@ -230,6 +230,9 @@ func buildPackagesIndex(ctx context.Context, ownerID int64, repoVersion *package
|
||||||
if len(pd.FileMetadata.Provides) > 0 {
|
if len(pd.FileMetadata.Provides) > 0 {
|
||||||
fmt.Fprintf(&buf, "p:%s\n", strings.Join(pd.FileMetadata.Provides, " "))
|
fmt.Fprintf(&buf, "p:%s\n", strings.Join(pd.FileMetadata.Provides, " "))
|
||||||
}
|
}
|
||||||
|
if pd.FileMetadata.InstallIf != "" {
|
||||||
|
fmt.Fprintf(&buf, "i:%s\n", pd.FileMetadata.InstallIf)
|
||||||
|
}
|
||||||
fmt.Fprint(&buf, "\n")
|
fmt.Fprint(&buf, "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue