| 787 | |
| 788 | |
| 789 | def getBinaryDistFiles(tmpDir, version, baseURL): |
| 790 | distribution = 'solr-%s.tgz' % version |
| 791 | if not os.path.exists('%s/%s' % (tmpDir, distribution)): |
| 792 | distURL = '%s/solr/%s' % (baseURL, distribution) |
| 793 | print(' download %s...' % distribution, end=' ') |
| 794 | scriptutil.download(distribution, distURL, tmpDir, force_clean=FORCE_CLEAN) |
| 795 | destDir = '%s/unpack-solr-getBinaryDistFiles' % tmpDir |
| 796 | if os.path.exists(destDir): |
| 797 | shutil.rmtree(destDir) |
| 798 | os.makedirs(destDir) |
| 799 | os.chdir(destDir) |
| 800 | print(' unpack %s...' % distribution) |
| 801 | unpackLogFile = '%s/unpack-%s-getBinaryDistFiles.log' % (tmpDir, distribution) |
| 802 | run('tar xzf %s/%s' % (tmpDir, distribution), unpackLogFile) |
| 803 | distributionFiles = [] |
| 804 | for root, dirs, files in os.walk(destDir): # pylint: disable=unused-variable |
| 805 | distributionFiles.extend([os.path.join(root, file) for file in files]) |
| 806 | return distributionFiles |
| 807 | |
| 808 | |
| 809 | def checkJavadocAndSourceArtifacts(artifacts, version): |