1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-24 03:14:30 +02:00
fpm/templates
Jo Vandeginste 067f4ccfd0 Add back newlines after sections with macro expansion
The previous commit eats too much whitespace after the section headers
(`%pre`, `%post` etc.). There should remain a newline.

Correct versions (for `%pre`):

```
%pre
ugrade () {
```

and

```
%pre -e
upgrade() {
```

Without this patch, we get these (wrong):

```
%pre ugrade () {
```

and

```
%pre -e upgrade() {
```

(exact number of spaces can be different, but should not be relevant)

Fixes #1750

Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
2021-06-19 00:16:58 -07:00
..
deb Ensure an if-then-else doesn't have an empty if block 2021-06-17 08:30:31 -07:00
pacman Fix more pacman tests 2015-05-08 19:59:38 -06:00
pleaserun Check for /lib and /usr/lib. Debian uses /lib, everyone else seems to use /usr/lib. 2016-05-16 05:22:41 -07:00
puppet - some code cleanup 2011-06-20 23:00:18 -07:00
rpm Auto add directories for rpm 2013-04-17 20:19:01 +05:30
deb.erb Use fix_dependency when populating debian Replaces field (#1442) 2018-10-25 10:23:16 -07:00
osxpkg.erb Initial OS X package support, #317. 2013-01-07 12:28:03 -05:00
p5p_metadata.erb Add support for Solaris 11 style IPS packages using *.p5p format 2015-04-10 17:45:18 -04:00
pacman.erb Fix the bug brought up by @ServiusHack 2015-09-16 20:52:04 -06:00
rpm.erb Add back newlines after sections with macro expansion 2021-06-19 00:16:58 -07:00
sh.erb Use head/tail over sed for metadata fetching in sh.erb template 2021-01-19 12:49:18 -08:00
solaris.erb Restore solaris package building 2012-11-28 11:17:25 +01:00