summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-29 06:56:27 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-29 06:56:27 +0000
commitb302cabb03080b58336e627a6fa037a0ef1618a2 (patch)
tree6fe4506d432f29095ffc5f4dbfb9e9f1449c8276 /bin/repoman
parent1421c098b8b0bea77a41f54d78247133dc257765 (diff)
downloadportage-b302cabb03080b58336e627a6fa037a0ef1618a2.tar.gz
portage-b302cabb03080b58336e627a6fa037a0ef1618a2.tar.bz2
portage-b302cabb03080b58336e627a6fa037a0ef1618a2.zip
Don't trigger the 'java.eclassesnotused' on blocker atoms. (trunk r9586)
svn path=/main/branches/2.1.2/; revision=9598
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 48d357592..318a90d84 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -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