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 <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2008-08-12 01:26:39 +10:00 committed by Dan McGee
parent 57bd8974c7
commit a23fc08758
1 changed files with 3 additions and 0 deletions

View File

@ -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
}