From 10b036e45dead88fe1f4152a4370156610ed16d3 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 12 Aug 2008 01:26:39 +1000 Subject: [PATCH] Fix error when sourcing profile script With the "set -e" property set, a failure when sourcing /etc/profile can cause makepkg to exit without error message. The bash-completion package activates this bug. Fixes FS#11179. Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 3604d10..40e9890 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -341,7 +341,10 @@ handledeps() { fi # we might need the new system environment + # set -e can cause problems during sourcing profile scripts + set +e source /etc/profile &>/dev/null + set -e return $R_DEPS_SATISFIED } -- 1.5.6.5