diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-04 23:22:53 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-04 23:22:53 -0400 |
| commit | 3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854 (patch) | |
| tree | 9a885b1501cc98024d2a5e9f68c487cf6a6ed60a /cmd/yeet/internal/pkgmeta/package.go | |
| parent | e907932c3a5a49bbd53ee3d8af391636b386cd38 (diff) | |
| download | x-3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854.tar.xz x-3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854.zip | |
cmd/yeet: support custom filename logic for tarball generationv1.13.4
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/yeet/internal/pkgmeta/package.go')
| -rw-r--r-- | cmd/yeet/internal/pkgmeta/package.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/yeet/internal/pkgmeta/package.go b/cmd/yeet/internal/pkgmeta/package.go index e7a9bb9..f955c6e 100644 --- a/cmd/yeet/internal/pkgmeta/package.go +++ b/cmd/yeet/internal/pkgmeta/package.go @@ -18,7 +18,8 @@ type Package struct { Documentation map[string]string `json:"documentation"` // pwd-relative source path, file in /usr/share/doc/$Name Files map[string]string `json:"files"` // pwd-relative source path, rpm destination path - Build func(BuildInput) `json:"build"` + Build func(BuildInput) `json:"build"` + Filename func(Package) string `json:"mkFilename"` } type BuildInput struct { |
