From: Mike Frysinger Date: Mon, 25 Sep 2006 16:22:44 +0000 (-0000) Subject: print errors to stderr, not stdout X-Git-Tag: v2.1.1-r1~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=baee2a0e584dac025476d357788bac19cf960685;p=portage.git print errors to stderr, not stdout svn path=/main/trunk/; revision=4526 --- diff --git a/bin/emerge b/bin/emerge index cc7cae835..e63c3c3e7 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1325,7 +1325,7 @@ class depgraph: try: if not self.select_dep( self.target_root, mydep, raise_on_missing=True): - print "\n\n!!! Problem resolving dependencies for", mydep + print >> sys.stderr, "\n\n!!! Problem resolving dependencies for", mydep return 0 except ValueError: missing_atoms.append(mydep) @@ -1333,14 +1333,14 @@ class depgraph: self.validate_blockers() if world_problems: - print "\n!!! Problems have been detected with your world file" - print "!!! Please run "+green("emaint --check world")+"\n" + print >> sys.stderr, "\n!!! Problems have been detected with your world file" + print >> sys.stderr, "!!! Please run "+green("emaint --check world")+"\n" if missing_atoms: - print "\n" + colorize("BAD", "!!!") + \ + print >> sys.stderr, "\n" + colorize("BAD", "!!!") + \ " Ebuilds for the following packages are either all" - print colorize("BAD", "!!!") + " masked or don't exist:" - print " ".join(missing_atoms) + "\n" + print >> sys.stderr, colorize("BAD", "!!!") + " masked or don't exist:" + print >> sys.stderr, " ".join(missing_atoms) + "\n" return 1