filter out pax header dirs

This commit is contained in:
Andreas Gohr
2018-04-30 22:19:12 +02:00
parent 582f263d81
commit 551eb468f4

View File

@ -232,6 +232,10 @@ class Downloader extends CLI
$files = glob("$dir/*.php");
$dirs = glob("$dir/*", GLOB_ONLYDIR);
$dirs = array_filter($dirs, function ($item) {
return basename($item) !== 'pax_global_header';
}); // fix some weird tars
if (!count($files) && count($dirs) === 1) {
return $this->getFilesPath($dirs[0]); // go one deeper
}