Fork of Arch Linux devtools from https://git.archlinux.org/devtools.git
Go to file
Luke Shumaker aee72cae32 lib/common.sh: Adjust to work properly with `set -u`
Support for working with `set -u` was broken by 94160d6.  Egg on my
face; I'm the one who wants `set -u` support, and I'm the author of
that commit!

libmakepkg does not work with `set -u`; but mostly because of the include
guards!  So we just need to temporarily disable `set -u` (nounset) while
loading libmakepkg.  Instead of introducing a new variable, just store the
initial nounset status in _INCLUDE_COMMON_SH; rather than a useless
fixed-string "true".

While we're at it, disable POSIX-mode (just in case we're running as "sh"
instead of "bash"), since libmakepkg uses bash-isms that won't parse in
POSIX mode.
2018-01-21 14:16:10 +01:00
lib lib/common.sh: Adjust to work properly with `set -u` 2018-01-21 14:16:10 +01:00
.gitignore Update .gitignore 2013-05-25 22:17:30 +02:00
Makefile Version 20171108 2017-11-08 14:23:26 +01:00
PKGBUILD.proto Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
arch-nspawn.in arch-nspawn: Remove pointless $(echo ...) subshell 2018-01-21 14:16:10 +01:00
archbuild.in Support reproducible builds 2017-11-22 16:35:25 +01:00
archco.in Avoid using string interpolation; use printf format strings instead. 2017-04-05 22:11:16 +02:00
archrelease.in archrelease: Whitespace adjustment 2017-07-05 18:35:16 +02:00
archrm.in Quote strings that shellcheck warns about. 2017-07-05 18:21:56 +02:00
bash_completion.in Quote strings that shellcheck warns about. 2017-07-05 18:21:56 +02:00
checkpkg.in Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
commitpkg.in Remove i686 support 2017-11-08 14:22:56 +01:00
crossrepomove.in Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
find-libdeps.in Make slightly more involved changes to make shellcheck happy. 2017-07-05 18:21:56 +02:00
finddeps.in Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
lddd.in Make slightly more involved changes to make shellcheck happy. 2017-07-05 18:21:56 +02:00
makechrootpkg.in makechrootpkg: Fix anti-pattern when checking for enabled features 2018-01-21 14:16:10 +01:00
makepkg-x86_64.conf Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
mkarchroot.in Quote strings that shellcheck warns about. 2017-07-05 18:21:56 +02:00
pacman-extra.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-gnome-unstable.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-kde-unstable.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib-staging.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib-testing.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-staging.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-testing.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
rebuildpkgs.in Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
zsh_completion.in Remove i686 support 2017-11-08 14:22:56 +01:00