From: Zac Medico Date: Wed, 18 Jul 2012 20:23:38 +0000 (-0700) Subject: etc-update: fix --automode -5, bug #427068 X-Git-Tag: v2.2.0_alpha120~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d134e60407c65b04fd57fea3016cf9ba9e8c5236;p=portage.git etc-update: fix --automode -5, bug #427068 --- diff --git a/bin/etc-update b/bin/etc-update index 1edc91fab..d763c1f73 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -190,6 +190,7 @@ parse_automode_flag() { parse_automode_flag -3 export mv_opts=" ${mv_opts} " mv_opts="${mv_opts// -i / }" + NONINTERACTIVE_MV=true ;; -3) input=0 @@ -600,6 +601,7 @@ declare title="Gentoo's etc-update tool!" PREEN=false SET_X=false VERBOSE=false +NONINTERACTIVE_MV=false while [[ -n $1 ]] ; do case $1 in -d|--debug) SET_X=true;; @@ -692,6 +694,11 @@ else fi fi +if ${NONINTERACTIVE_MV} ; then + export mv_opts=" ${mv_opts} " + mv_opts="${mv_opts// -i / }" +fi + if ${VERBOSE} ; then for v in ${portage_vars[@]} ${cfg_vars[@]} TMP SCAN_PATHS ; do echo "${v}=${!v}"