repoman: disable dependency.unknown for blockers
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Mar 2012 05:37:39 +0000 (22:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Mar 2012 05:37:39 +0000 (22:37 -0700)
This will fix bug #382407.

bin/repoman

index c5db1865f75e061601ef8502fe9a86b66a1c18a5..d393df1ba3354d733c47b30862dbb50fe9df11e6 100755 (executable)
@@ -1866,7 +1866,11 @@ for x in effective_scanlist:
                                        if atom == "||":
                                                continue
 
-                                       if not portdb.xmatch("match-all", atom) and \
+                                       # 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 \
+                                               not portdb.xmatch("match-all", atom) and \
                                                not atom.cp.startswith("virtual/"):
                                                unknown_pkgs.add((mytype, atom.unevaluated_atom))