diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 20:09:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 20:09:44 +0900 |
| commit | 20ebddd9bf16d819ee4e92ec59ace37a1dc6fce7 (patch) | |
| tree | 511b992f51b97cfbf91682474cbbf129a6a3f16d /internal/rosa/rosa.go | |
| parent | 420c721c7da46ab1c633b019441b7b623215fd12 (diff) | |
internal/rosa: export source kind
This is set for an exported field, so export the constants as well.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index a28fd836..47ccddab 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -426,8 +426,8 @@ type Helper interface { } const ( - // sourceTarXZ denotes a source tarball to be decompressed using [XZ]. - sourceTarXZ = 1 + iota + // SourceKindTarXZ denotes a source tarball to be decompressed using [XZ]. + SourceKindTarXZ = 1 + iota ) // PackageAttr holds build-system-agnostic attributes. @@ -546,7 +546,7 @@ func (t Toolchain) NewPackage( var sourceSuffix string switch attr.SourceKind { - case sourceTarXZ: + case SourceKindTarXZ: sourceSuffix = ".tar.xz" scriptEarly += ` tar -C /usr/src/ -xf '/usr/src/` + name + `.tar.xz' |
