aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-08-04 10:57:07 +0200
committerMichał Górny <mgorny@gentoo.org>2014-08-06 23:11:38 +0200
commit72a1f979342d89f41594f40fc6074fcd3ede9086 (patch)
tree45daea6df0fa13c3797c16a0e2af048a07cb0452 /bin
parentlocalization: properly decode formatted number for localized_size(). (diff)
downloadportage-72a1f979342d89f41594f40fc6074fcd3ede9086.tar.gz
portage-72a1f979342d89f41594f40fc6074fcd3ede9086.tar.bz2
portage-72a1f979342d89f41594f40fc6074fcd3ede9086.zip
repoman: fix atom.blocker checks.
The original checks assume that no-blocker is denoted as 'None'. However, currently atom.blocker returns just 'False'.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index 9c5d72092..71fc7f038 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: