public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] depgraph: Skip atoms that are None (bug 505944)
@ 2014-03-27 12:21 Alexander Berntsen
  2014-03-27 16:16 ` Brian Dolbec
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Berntsen @ 2014-03-27 12:21 UTC (permalink / raw
  To: gentoo-portage-dev

Don't try to display atoms that are None when in debug mode.
---
Can I get an ACK on this please? Do share your ideas for refactoring,
if any. But even if this is not how we want it to work in the end, I
still think we should commit it to fix the bug.


 pym/_emerge/depgraph.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index abb70a7..556cb08 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2211,12 +2211,13 @@ class depgraph(object):
 				# Display the specific atom from SetArg or
 				# Package types.
 				uneval = ""
-				if dep.atom is not dep.atom.unevaluated_atom:
-					uneval = " (%s)" % (dep.atom.unevaluated_atom,)
-				writemsg_level(
-					"%s%s%s required by %s\n" %
-					("Parent Dep:".ljust(15), dep.atom, uneval, myparent),
-					level=logging.DEBUG, noiselevel=-1)
+				if dep.atom is not None:
+					if dep.atom is not dep.atom.unevaluated_atom:
+						uneval = " (%s)" % (dep.atom.unevaluated_atom,)
+					writemsg_level(
+						"%s%s%s required by %s\n" %
+						("Parent Dep:".ljust(15), dep.atom, uneval, myparent),
+						level=logging.DEBUG, noiselevel=-1)
 
 		# Ensure that the dependencies of the same package
 		# are never processed more than once.
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-28  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 12:21 [gentoo-portage-dev] [PATCH] depgraph: Skip atoms that are None (bug 505944) Alexander Berntsen
2014-03-27 16:16 ` Brian Dolbec
2014-03-28  9:07   ` Alexander Berntsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox