1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-23 03:04:34 +02:00
fpm/lib
Jordan Sissel 4f51caf8fc rpm: Replace dash with underscore.
(note: fpm calls 'iteration' what rpm calls 'release')

rpmbuild will reject the `Release` tag containing a dash with the
following error (via fpm --verbose):

```
error: line 41: Illegal char '-' (0x2d) in: Release: 1-1 {:level=>:info}
Process failed: rpmbuild failed (exit code 1).
```

This patch copies the dash-to-underscore operation that is already
applied to the version field.

Adds tests for both iteration and version field.

Fixes: #1833
2021-09-22 00:09:42 -07:00
..
fpm rpm: Replace dash with underscore. 2021-09-22 00:09:42 -07:00
fpm.rb Introduce support for snap packages (#1490) 2018-10-16 15:59:17 -07:00