mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 21:49:22 +00:00
[GITEA] Generate install if condition for Alpine
- If the APKINFO contains an install if condition, write it in the APKINDEX.
- No integration testing, as I don't have the files to regenerate the
hardcoded compressed(?) APKINFO in the test.
- Resolves #2174
(cherry picked from commit 11da776bef
)
This commit is contained in:
parent
a99c17729c
commit
2824ae4cf2
|
@ -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