LUCENE-4006: re-enable checking SYSTEM_REQUIREMENTS.txt for Solr

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1399743 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-10-18 17:31:39 +00:00
parent 6b739db2ff
commit bfc75d60b7
1 changed files with 5 additions and 4 deletions

View File

@ -581,6 +581,9 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
textFiles.extend(('JRE_VERSION_MIGRATION', 'CHANGES', 'MIGRATE', 'SYSTEM_REQUIREMENTS'))
if isSrc:
textFiles.append('BUILD')
elif not isSrc:
textFiles.append('SYSTEM_REQUIREMENTS')
for fileName in textFiles:
fileName += '.txt'
if fileName not in l:
@ -629,10 +632,8 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
if project == 'lucene':
if len(l) > 0:
raise RuntimeError('%s: unexpected files/dirs in artifact %s: %s' % (project, artifact, l))
else:
# TODO: re-enable this check
if False and not os.path.exists('%s/solr/SYSTEM_REQUIREMENTS.txt' % unpackPath):
raise RuntimeError('%s: solr/SYSTEM_REQUIREMENTS.txt does not exist in artifact %s' % (project, artifact))
elif isSrc and not os.path.exists('%s/solr/SYSTEM_REQUIREMENTS.txt' % unpackPath):
raise RuntimeError('%s: solr/SYSTEM_REQUIREMENTS.txt does not exist in artifact %s' % (project, artifact))
if isSrc:
print(' make sure no JARs/WARs in src dist...')