/** * Unpack archive * * @return boolean */ public function unpack() { if ($this->isDownloaded()) { // Extract archive files into a new directory list($dir, $result) = \Includes\Utils\PHARManager::unpack($this->getRepositoryPath(), LC_DIR_TMP); $this->setRepositoryPath($dir, true, !$result); if ($result) { $this->prepareUnpackDir($dir); $this->addFileInfoMessage('Entry "{{' . self::TOKEN_ENTRY . '}}" archive is unpacked', $dir, true); } } return $this->isUnpacked(); }