pacman/scripts
Dave Reisner 9ce2c9b187 makepkg: make run_function_safe more robust
Use shopt to set/reset errexit and errtrace, which lets us:

1) be more vigilant, resetting anything the user might do to us in
PKGBUILD functions.
2) use human-readable words (errexit vs. -e)

On top of this, introduce a new save/restore for the shell's other
shopts. A user should not have any expectations that what happens in
one function is available in another function, if it isn't explicitly
defined in the PKGBUILD. While this change does not make that
assertion, it gets us closer.

We also replace a variable which comes from out of nowhere (pkgfunc)
with the positional parameter containing the same value. Quoting is
adjusted to make the expansion happen at the time the trap is set,
rather than later on.
2016-12-05 15:20:08 +10:00
..
completion Move bash/zsh completion out of contrib 2016-10-10 10:38:05 +10:00
libmakepkg Revert "[RFC] Provide source files for useful debug packages" 2016-12-05 15:12:03 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am Make sure all proper scripts are installed instead of the wrappers 2016-12-05 15:20:08 +10:00
makepkg-template.pl.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
makepkg.sh.in makepkg: make run_function_safe more robust 2016-12-05 15:20:08 +10:00
pacman-db-upgrade.sh.in makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
pacman-key.sh.in makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
pkgdelta.sh.in makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
repo-add.sh.in Use coreutils binaries for checking/generating checksums 2016-10-22 20:50:55 +10:00
wrapper.sh.in Generalise makepkg-wrapper to handle any script using libmakepkg 2016-10-22 20:50:29 +10:00