mirror of
https://github.com/goreleaser/nfpm
synced 2024-09-27 23:09:52 +02:00
fix: versions with dash on rpm
This commit is contained in:
parent
0c117a72f5
commit
c52d07bcc8
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user