1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-06-09 21:56:07 +02:00

fix: versions with dash on rpm

This commit is contained in:
Carlos Alexandro Becker 2018-03-28 14:41:25 -03:00 committed by Carlos Alexandro Becker
parent 0c117a72f5
commit c52d07bcc8

View File

@ -42,6 +42,7 @@ func (*RPM) Package(info nfpm.Info, w io.Writer) error {
if ok {
info.Arch = arch
}
info.Version = strings.Replace(info.Version, "-", "_", -1)
_, err := exec.LookPath("rpmbuild")
if err != nil {
return fmt.Errorf("rpmbuild not present in $PATH")