Fix equery --no-pipe to work correctly
authorfuzzyray <fuzzyray@gentoo.org>
Thu, 17 Dec 2009 20:03:35 +0000 (20:03 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Thu, 17 Dec 2009 20:03:35 +0000 (20:03 -0000)
svn path=/trunk/gentoolkit/; revision=727

pym/gentoolkit/equery/__init__.py

index 07eb3dd20d5466dacff22d04b835e3b85bae7950..1d34a65d7a6094199e6a581f17f44c2e690b695c 100644 (file)
@@ -216,8 +216,6 @@ def initialize_configuration():
                os.getenv("NOCOLOR") in ("yes", "true")) or CONFIG['color'] == 0):
                pp.output.nocolor()
 
-       CONFIG['verbose'] = not CONFIG['piping']
-
 
 def main_usage():
        """Return the main usage message for equery"""
@@ -269,6 +267,7 @@ def parse_global_options(global_opts, args):
                        pp.output.nocolor()
                elif opt in ('-N', '--no-pipe'):
                        CONFIG['piping'] = False
+                       CONFIG['verbose'] = True
                elif opt in ('-V', '--version'):
                        print_version()
                        sys.exit(0)