diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-07-24 11:37:36 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-30 04:48:20 +0200 |
commit | 0e0a8461357baeb4bea23b09a56c003cf04fd0db (patch) | |
tree | 07ec6ee0688d4b06d6c2024cc58301d26afb1297 /scripts | |
parent | 428b2fd8cc5ad4a0e7b2dcd1d097fb57237ea7a8 (diff) | |
download | pacman-0e0a8461357baeb4bea23b09a56c003cf04fd0db.tar.gz pacman-0e0a8461357baeb4bea23b09a56c003cf04fd0db.tar.xz |
makepkg : use /etc/profile
This fixes FS#9486.
source /etc/profile instead of all individual files in /etc/profile.d/*
(which is done by /etc/profile anyway).
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 379e9d8b..83124385 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -343,13 +343,8 @@ handledeps() { fi fi - # rerun any additional sh scripts found in /etc/profile.d/ - local script - for script in /etc/profile.d/*.sh; do - if [ -x $script ]; then - source $script &>/dev/null - fi - done + # we might need the new system environment + source /etc/profile &>/dev/null return $R_DEPS_SATISFIED } |