Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 68330 Details for
Bug 98634
equery ignores --nocolor (and -C and NOCOLOR environment variable) when --help is given
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Accepts --nocolor or NOCOLOR with --help
equery.diff (text/plain), 936 bytes, created by
Andres Pereira (RETIRED)
on 2005-09-13 00:36:03 UTC
(
hide
)
Description:
Accepts --nocolor or NOCOLOR with --help
Filename:
MIME Type:
Creator:
Andres Pereira (RETIRED)
Created:
2005-09-13 00:36:03 UTC
Size:
936 bytes
patch
obsolete
>--- /usr/bin/equery 2005-02-25 18:32:11.000000000 -0300 >+++ equery 2005-09-13 02:54:25.000000000 -0400 >@@ -1479,18 +1479,19 @@ > print_info(0, " " + pp.command(x) + "(" + pp.command(short_cmds[x]) + ") " + \ > Known_commands[x].shortHelp()) > print >- >-def configure(): >- """Set up default configuration. >- """ > >- # Guess colour output >+def guessColourOutput(): > if (Config["color"] == -1 and \ > ((not sys.stdout.isatty()) or \ > (gentoolkit.settings["NOCOLOR"] in ["yes","true"]))) \ > or \ > Config["color"] == 0: > pp.output.nocolor() >+ >+def configure(): >+ """Set up default configuration. >+ """ >+ guessColourOutput() > > # Guess piping output > if not sys.stdout.isatty(): >@@ -1538,6 +1539,7 @@ > break > > if not command and showhelp: >+ guessColourOutput() > printUsage() > sys.exit(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 98634
:
68330
|
68333