(in_folder, files, indent=4)
| 590 | os.chdir(destDir) |
| 591 | print(' unpack %s...' % artifact) |
| 592 | unpackLogFile = '%s/solr-unpack-%s.log' % (tmpDir, artifact) |
| 593 | expected = artifact |
| 594 | if artifact.endswith('.tar.gz') or artifact.endswith('.tgz'): |
| 595 | expected = artifact[:artifact.find('.t')] |
| 596 | expected = expected.replace("-src", "") # Remove when the src tgz subdirectory has "-src" appended |
| 597 | run('tar xzf %s/%s' % (tmpDir, artifact), unpackLogFile) |
| 598 | |
| 599 | # make sure it unpacks to proper subdir |
| 600 | l = os.listdir(destDir) |
| 601 | if l != [expected]: |
| 602 | raise RuntimeError('unpack produced entries %s; expected only %s' % (l, expected)) |
| 603 | |
| 604 | return '%s/%s' % (destDir, expected) |
no test coverage detected
searching dependent graphs…