Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82521 Details for
Bug 126756
einfo disabling colors with --nocolor
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
--nocolor and NOCOLOR support for ebuild.sh
nocolor_ebuild.patch (text/plain), 1.22 KB, created by
Zac Medico
on 2006-03-18 22:17:04 UTC
(
hide
)
Description:
--nocolor and NOCOLOR support for ebuild.sh
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-03-18 22:17:04 UTC
Size:
1.22 KB
patch
obsolete
>Index: bin/emerge >=================================================================== >--- bin/emerge (revision 2951) >+++ bin/emerge (working copy) >@@ -408,8 +408,14 @@ > myopts.remove("--tree") > > # Set color output >-if ("--nocolor" in myopts) and (sys.stdout.isatty()): >+if "--nocolor" in myopts or \ >+portage.settings["NOCOLOR"] in ("yes","true"): > nocolor() >+ if "NOCOLOR" not in portage.settings: >+ portage.settings.unlock() >+ portage.settings["NOCOLOR"] = "true" >+ portage.settings.backup_changes("NOCOLOR") >+ portage.settings.lock() > > if not ("--quiet" in myopts): > if not sys.stdout.isatty() or ("--nospinner" in myopts): >Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 2951) >+++ bin/ebuild.sh (working copy) >@@ -51,9 +51,17 @@ > [ ! -z "$PREROOTPATH" ] && export PATH="${PREROOTPATH%%:}:$PATH" > > source /usr/lib/portage/bin/isolated-functions.sh &>/dev/null >-# TODO: make this conditional on config settings, fix any remaining stuff >-set_colors > >+case "${NOCOLOR:-false}" in >+ yes|true) >+ unset_colors >+ ;; >+ no|false) >+ set_colors >+ ;; >+esac >+ >+ > # the sandbox is disabled by default except when overridden in the relevant stages > export SANDBOX_ON="0" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 126756
: 82521