diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-06 23:26:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-06 23:26:32 +0000 |
commit | 8cd25b626e32e5cb0d59591fae6f827852fc3868 (patch) | |
tree | c800e5c1db19708fed3f3548004910ab1a896e4c | |
parent | 5a0b850fb9bf99eb4dceee8454aa40bc0fb3ff5d (diff) | |
download | portage-8cd25b626e32e5cb0d59591fae6f827852fc3868.tar.gz portage-8cd25b626e32e5cb0d59591fae6f827852fc3868.tar.bz2 portage-8cd25b626e32e5cb0d59591fae6f827852fc3868.zip |
Use writemsg instead of print, to send debug messages to stderr.
svn path=/main/trunk/; revision=14784
-rw-r--r-- | pym/_emerge/depgraph.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 2ff345da6..e8c4514df 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1133,10 +1133,12 @@ class depgraph(object): if not dep_string: continue if debug: - print() - print("Parent: ", jbigkey) - print("Depstring:", dep_string) - print("Priority:", dep_priority) + writemsg_level("\nParent: %s\n" % (pkg,), + noiselevel=-1, level=logging.DEBUG) + writemsg_level("Depstring: %s\n" % (dep_string,), + noiselevel=-1, level=logging.DEBUG) + writemsg_level("Priority: %s\n" % (dep_priority,), + noiselevel=-1, level=logging.DEBUG) try: @@ -1272,7 +1274,8 @@ class depgraph(object): return 0 if debug: - print("Exiting...", pkg) + writemsg_level("Exiting... %s\n" % (pkg,), + noiselevel=-1, level=logging.DEBUG) return 1 |