public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] repoman: fix atom.blocker checks.
@ 2014-08-04  9:02 Michał Górny
  2014-08-04 21:51 ` Michał Górny
  2014-08-11 21:05 ` Michał Górny
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2014-08-04  9:02 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

The original checks assume that no-blocker is denoted as 'None'.
However, currently atom.blocker returns just 'False'.
---
 bin/repoman | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/repoman b/bin/repoman
index 9c5d720..71fc7f0 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2042,16 +2042,16 @@ for x in effective_scanlist:
 					if atom == "||":
 						continue
 
+					is_blocker = atom.blocker
+
 					# Skip dependency.unknown for blockers, so that we
 					# don't encourage people to remove necessary blockers,
 					# as discussed in bug #382407.
-					if atom.blocker is None and \
+					if not is_blocker and \
 						not portdb.xmatch("match-all", atom) and \
 						not atom.cp.startswith("virtual/"):
 						unknown_pkgs.add((mytype, atom.unevaluated_atom))
 
-					is_blocker = atom.blocker
-
 					if catdir != "virtual":
 						if not is_blocker and \
 							atom.cp in suspect_virtual:
-- 
2.0.4



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

end of thread, other threads:[~2014-08-11 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04  9:02 [gentoo-portage-dev] [PATCH] repoman: fix atom.blocker checks Michał Górny
2014-08-04 21:51 ` Michał Górny
2014-08-06 21:07   ` Brian Dolbec
2014-08-11 21:05 ` Michał Górny

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