Don't trigger the 'java.eclassesnotused' on blocker atoms.
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 00:02:11 +0000 (00:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 00:02:11 +0000 (00:02 -0000)
svn path=/main/trunk/; revision=9586

bin/repoman

index 4d7aa19cac3c3ab11573299af46217609b2a988f..1ebf71d587808935659aace6eeaa4c616eb24781 100755 (executable)
@@ -1159,8 +1159,12 @@ for x in scanlist:
                                        if not portage.isvalidatom(token, allow_blockers=True):
                                                badsyntax.append("'%s' not a valid atom" % token)
                                        else:
-                                               atom = token.lstrip("!")
+                                               atom = token
+                                               is_blocker = atom.startswith("!")
+                                               if is_blocker:
+                                                       atom = token.lstrip("!")
                                                if mytype == "DEPEND" and \
+                                                       not is_blocker and \
                                                        not inherited_java_eclass and \
                                                        portage.dep_getkey(atom) == "virtual/jdk":
                                                        stats['java.eclassesnotused'] += 1