Fork of Arch Linux devtools from https://git.archlinux.org/devtools.git
Go to file
Dave Reisner 0e32334cca archbuild: exec makechrootpkg to preserve exit value
This fixes a compound command such as the one below from continuing even
if the first fails.

  extra-x86_64-build && extra-i686-build

The problem is that 'cleanup 0' is triggered in archbuild even after an
unsucessful call to makechrootpkg. Since both archbuild and
makechrootpkg share the exact same cleanup function (from lib/common),
we simply force the shell to exit with the true return value by exec'ing
the call to makechrootpkg.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-12-04 18:13:13 +01:00
lib lib/common.sh: Revise setup_workdir() 2011-11-04 19:34:00 +01:00
.gitignore add libdepends script 2011-10-31 22:57:12 +01:00
Makefile Makefile: Remove output files before replacing them 2011-12-04 18:01:51 +01:00
archbuild.in archbuild: exec makechrootpkg to preserve exit value 2011-12-04 18:13:13 +01:00
archco.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
archrelease.in Capitalize output messages 2011-11-04 19:33:29 +01:00
archrm.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
bash_completion.in Support non-standard install locations 2011-10-07 21:53:02 +02:00
checkpkg.in Move common functions to a shared file 2011-11-01 15:33:08 +01:00
commitpkg.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
find-libdeps.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
finddeps.in Move common functions to a shared file 2011-11-01 15:33:08 +01:00
lddd.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
makechrootpkg.in makearchroot: source /etc/profile before building 2011-12-04 18:04:47 +01:00
makepkg-i686.conf Apply pacman 4.0 changes to our copies of makepkg.conf and pacman.conf 2011-10-14 09:09:46 +02:00
makepkg-x86_64.conf Apply pacman 4.0 changes to our copies of makepkg.conf and pacman.conf 2011-10-14 09:09:46 +02:00
mkarchroot.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
pacman-extra.conf archbuild: Always use recent makepkg.conf and pacman.conf; Run namcap by default 2011-11-06 10:32:55 +01:00
pacman-gnome-unstable.conf Add support for kde-unstable and gnome-unstable 2011-12-04 17:48:46 +01:00
pacman-kde-unstable.conf Add support for kde-unstable and gnome-unstable 2011-12-04 17:48:46 +01:00
pacman-multilib-testing.conf Disable pacman's CheckSpace option as it fails within a chroot 2011-10-14 10:16:55 +02:00
pacman-multilib.conf archbuild: Always use recent makepkg.conf and pacman.conf; Run namcap by default 2011-11-06 10:32:55 +01:00
pacman-staging.conf Disable pacman's CheckSpace option as it fails within a chroot 2011-10-14 10:16:55 +02:00
pacman-testing.conf Disable pacman's CheckSpace option as it fails within a chroot 2011-10-14 10:16:55 +02:00
rebuildpkgs.in Use double brackets everywhere 2011-12-04 18:00:57 +01:00
zsh_completion.in Add support for kde-unstable and gnome-unstable 2011-12-04 17:48:46 +01:00