Skip to content

Commit

Permalink
nfpm: remove markdown table indentation
Browse files Browse the repository at this point in the history
It is getting formatted like a code block instead of a table.
Hopefully this fixes it.
  • Loading branch information
cognifloyd committed Jan 2, 2025
1 parent d66b658 commit 94ea59c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
16 changes: 8 additions & 8 deletions src/python/pants/backend/nfpm/fields/apk.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ class NfpmApkScriptsField(NfpmPackageScriptsField):
The script types are the terms used by nFPM. For reference, Alpine Linux
uses the following terms in the APKBUILD file instead:
| nFPM term | APKBUILD term |
+-------------+----------------+
| preinstall | pre-install |
| postinstall | post-install |
| preupgrade | pre-upgrade |
| postupgrade | post-upgrade |
| preremove | pre-deinstall |
| postremove | post-deinstall |
| nFPM term | APKBUILD term |
+-------------+----------------+
| preinstall | pre-install |
| postinstall | post-install |
| preupgrade | pre-upgrade |
| postupgrade | post-upgrade |
| preremove | pre-deinstall |
| postremove | post-deinstall |
Please consult the Alpine Linux docs to understand when `apk` will run
each of these scripts, how it handles a failure, and what failure means
Expand Down
16 changes: 8 additions & 8 deletions src/python/pants/backend/nfpm/fields/archlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ class NfpmArchlinuxScriptsField(NfpmPackageScriptsField):
by adding a shell function for each of your script files where your script becomes
the body of that function. These functions are:
| nFPM script | `.INSTALL` function |
+-------------+---------------------+
| preinstall | pre_install |
| postinstall | post_install |
| preupgrade | pre_upgrade |
| postupgrade | post_upgrade |
| preremove | pre_remove |
| postremove | post_remove |
| nFPM script | `.INSTALL` function |
+-------------+---------------------+
| preinstall | pre_install |
| postinstall | post_install |
| preupgrade | pre_upgrade |
| postupgrade | post_upgrade |
| preremove | pre_remove |
| postremove | post_remove |
So, if you provide a `preinstall` script, the `.INSTALL` scriptlet would contain:
Expand Down
18 changes: 9 additions & 9 deletions src/python/pants/backend/nfpm/fields/deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,15 @@ class NfpmDebScriptsField(NfpmPackageScriptsField):
The script types are the names used by nFPM. For reference, Debian
uses the following file names instead:
| nFPM script | Debian file |
+-------------+-------------+
| preinstall | preinst |
| postinstall | postinst |
| preremove | prerm |
| postremove | postrm |
| config | config |
| templates | templates |
| rules | rules |
| nFPM script | Debian file |
+-------------+-------------+
| preinstall | preinst |
| postinstall | postinst |
| preremove | prerm |
| postremove | postrm |
| config | config |
| templates | templates |
| rules | rules |
The `pre*` and `post*` scripts are used by `dpkg` at various stages of
installing, upgrading, and removing the deb package.
Expand Down
18 changes: 9 additions & 9 deletions src/python/pants/backend/nfpm/fields/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ class NfpmRpmScriptsField(NfpmPackageScriptsField):
uses the following scriptlet tag names instead and runs them before/after
the indicated phase:
| nFPM term | RPM scriptlet | RPM phase |
+-------------+---------------+-------------+
| preinstall | %pre | install |
| postinstall | %post | install |
| preremove | %preun | uninstall |
| postremove | %postun | uninstall |
| pretrans | %pretrans | transaction |
| posttrans | %posttrans | transaction |
| verify | %verifyscript | verify |
| nFPM term | RPM scriptlet | RPM phase |
+-------------+---------------+-------------+
| preinstall | %pre | install |
| postinstall | %post | install |
| preremove | %preun | uninstall |
| postremove | %postun | uninstall |
| pretrans | %pretrans | transaction |
| posttrans | %posttrans | transaction |
| verify | %verifyscript | verify |
Please consult the RPM docs to understand what is required of these scripts.
Expand Down

0 comments on commit 94ea59c

Please sign in to comment.