diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-08-04 10:57:07 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-08-06 23:11:38 +0200 |
commit | 72a1f979342d89f41594f40fc6074fcd3ede9086 (patch) | |
tree | 45daea6df0fa13c3797c16a0e2af048a07cb0452 /bin | |
parent | localization: properly decode formatted number for localized_size(). (diff) | |
download | portage-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-x | bin/repoman | 6 |
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: |