Enable comparisons between Solr distribution artifact names (apache-solr-*) and those of Maven artifacts (solr-*)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1304662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2012-03-23 23:47:55 +00:00
parent d7bccac40b
commit 6fc8fa052c
1 changed files with 4 additions and 1 deletions

View File

@ -571,7 +571,10 @@ def checkIdenticalMavenArtifacts(distributionFiles, nonMavenizedDeps, artifacts,
for project in ('lucene', 'solr'):
distFilenames = dict()
for file in distributionFiles[project]:
distFilenames[os.path.basename(file)] = file
baseName = os.path.basename(file)
if project == 'solr': # Remove 'apache-' prefix to allow comparison to Maven artifacts
baseName = baseName.replace('apache-', '')
distFilenames[baseName] = file
for artifact in artifacts[project]:
if reJarWar.search(artifact):
if artifact not in nonMavenizedDeps.keys():