1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-29 04:33:45 +02:00

fix: wrong separator in conventional RPM file name (#163)

Co-authored-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
This commit is contained in:
Erik G 2020-07-09 16:36:49 +02:00 committed by GitHub
parent 9b6e3c4260
commit e3a424afed
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ func ensureValidArch(info *nfpm.Info) *nfpm.Info {
func (*RPM) ConventionalFileName(info *nfpm.Info) string {
info = ensureValidArch(info)
// name-version-release.architecture.rpm
return fmt.Sprintf("%s_%s.%s.rpm", info.Name, info.Version, info.Arch)
return fmt.Sprintf("%s-%s.%s.rpm", info.Name, info.Version, info.Arch)
}
// Package writes a new RPM package to the given writer using the given info.