diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-13 15:23:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-13 18:02:57 +0900 |
| commit | 83b0e32c550bf47eea826be7403183bf8f412850 (patch) | |
| tree | abfe8a5c2aec066a705ba92405b8366ebcd973b2 /internal/rosa/libcap.go | |
| parent | eeaf26e7a24c5c51c64fc333284015224e851e8c (diff) | |
internal/rosa: helpers for common url formats
This cleans up call site of NewPackage.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libcap.go')
| -rw-r--r-- | internal/rosa/libcap.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/libcap.go b/internal/rosa/libcap.go index 221053b9..a35a5743 100644 --- a/internal/rosa/libcap.go +++ b/internal/rosa/libcap.go @@ -7,10 +7,10 @@ func (t Toolchain) newLibcap() (pkg.Artifact, string) { version = "2.78" checksum = "wFdUkBhFMD9InPnrBZyegWrlPSAg_9JiTBC-eSFyWWlmbzL2qjh2mKxr9Kx2a8ut" ) - return t.NewPackage("libcap", version, pkg.NewHTTPGetTar( - nil, "https://git.kernel.org/pub/scm/libs/libcap/libcap.git/"+ + return t.NewPackage("libcap", version, newTar( + "https://git.kernel.org/pub/scm/libs/libcap/libcap.git/"+ "snapshot/libcap-"+version+".tar.gz", - mustDecode(checksum), + checksum, pkg.TarGzip, ), &PackageAttr{ // uses source tree as scratch space |
