projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1289e32
)
Fix portageq to handle NOCOLOR.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 12 Oct 2010 02:29:21 +0000
(19:29 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 12 Oct 2010 02:29:21 +0000
(19:29 -0700)
bin/portageq
patch
|
blob
|
history
diff --git
a/bin/portageq
b/bin/portageq
index d7ea72bf53c5db8ceb399528e9fc48bbb5e15942..547a70d6c6f8d78bbd4741d4d1587c5376c58358 100755
(executable)
--- a/
bin/portageq
+++ b/
bin/portageq
@@
-660,6
+660,11
@@
else:
pass
def main():
+
+ nocolor = os.environ.get('NOCOLOR')
+ if nocolor in ('yes', 'true'):
+ portage.output.nocolor()
+
if "-h" in sys.argv or "--help" in sys.argv:
usage(sys.argv)
sys.exit(os.EX_OK)