MCPcopy Create free account
hub / github.com/apache/solr / getBinaryDistFiles

Function getBinaryDistFiles

dev-tools/scripts/smokeTestRelease.py:789–806  ·  view source on GitHub ↗
(tmpDir, version, baseURL)

Source from the content-addressed store, hash-verified

787
788
789def 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
809def checkJavadocAndSourceArtifacts(artifacts, version):

Callers 1

checkMavenFunction · 0.85

Calls 5

runFunction · 0.70
existsMethod · 0.65
downloadMethod · 0.45
walkMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…