Don't trigger the 'java.eclassesnotused' on blocker atoms. (trunk r9586)
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 06:56:27 +0000 (06:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 06:56:27 +0000 (06:56 -0000)
svn path=/main/branches/2.1.2/; revision=9598

bin/repoman

index 48d3575922fb20af720692845b210be022c814bd..318a90d8492ddb828ff3e6a82073f3058fbe9bc6 100755 (executable)
@@ -1646,8 +1646,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