Package: fakechroot Version: 2.16-1 Severity: whishlist Tags: patch
Dear Maintainer, Is it possible to switch off environment setting altogether if a special keyword is given, eg. -e none ? Currently variable settings in a script are overwritten unconditionnally when it calls fakechroot (and the environment scripts in system or user configuration are sourced). As a result the script cannot tailor the environment for its particular needs. Thanks in advance for you comments. Regards, JH Chatenet --- a/scripts/fakechroot.sh 2011-12-11 13:05:34.000000000 +0100 +++ b/scripts/fakechroot.sh 2013-08-12 12:07:47.000000000 +0200 @@ -123,15 +123,17 @@ # Additional environment setting from configuration file -for e in "$environment" "${environment%.*}" default; do - for d in "$confdir" "$HOME/.fakechroot" "$sysconfdir"; do - f="$d/$e.env" - if [ -f "$f" ]; then - . "$f" - break 2 - fi +if [ "$environment" != "none" ]; then + for e in "$environment" "${environment%.*}" default; do + for d in "$confdir" "$HOME/.fakechroot" "$sysconfdir"; do + f="$d/$e.env" + if [ -f "$f" ]; then + . "$f" + break 2 + fi + done done -done +fi # Execute command -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org