From 5ccae126dfa6dafe2da736dc6def881b4ccf1fb7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jan 2006 12:35:07 +0000 Subject: [PATCH] get --nospinner from myopts instead of sys.argv so that it works with EMERGE_DEFAULT_OPTS svn path=/main/trunk/; revision=2608 --- bin/emerge | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/emerge b/bin/emerge index eba9a3d19..e0d043912 100755 --- a/bin/emerge +++ b/bin/emerge @@ -72,9 +72,6 @@ update_spinner = update_twirl_spinner if "candy" in portage.settings.features: spinner = spinner_msgs[int(time.time()*100)%len(spinner_msgs)] update_spinner = update_scroll_spinner -if not sys.stdout.isatty() or ("--nospinner" in sys.argv): - update_spinner = update_basic_spinner - if (not sys.stdout.isatty()) or (portage.settings["NOCOLOR"] in ["yes","true"]): nocolor() @@ -431,6 +428,9 @@ if ("--resume" in myopts): if ("--nocolor" in myopts) and (sys.stdout.isatty()): nocolor() +if not sys.stdout.isatty() or ("--nospinner" in myopts): + update_spinner = update_basic_spinner + CLEAN_DELAY = 5 EMERGE_WARNING_DELAY = 10 if portage.settings["CLEAN_DELAY"]: -- 2.26.2