Группа :: Система/Настройка/Пакеты
Пакет: composer
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: composer-compiler.patch
Скачать
Скачать
diff --git a/composer/src/Composer/Compiler.php b/composer/src/Composer/Compiler.php
index 14449a13e..c0d605d91 100644
--- a/composer/src/Composer/Compiler.php
+++ b/composer/src/Composer/Compiler.php
@@ -42,12 +42,17 @@ class Compiler
*
* @throws \RuntimeException
*/
- public function compile(string $pharFile = 'composer.phar'): void
+ public function compile(string $pharFile = 'composer.phar', $version, $date): void
{
if (file_exists($pharFile)) {
unlink($pharFile);
}
+ $this->version = $version;
+ $this->versionDate = new \DateTime($date);
+ $this->versionDate->setTimezone(new \DateTimeZone('UTC'));
+
+/*
$process = new Process(['git', 'log', '--pretty=%H', '-n1', 'HEAD'], __DIR__);
if ($process->run() !== 0) {
throw new \RuntimeException('Can\'t run git log. You must ensure to run compile from composer git repository clone and that git binary is available.');
@@ -74,6 +79,7 @@ public function compile(string $pharFile = 'composer.phar'): void
$this->branchAliasVersion = $localConfig['extra']['branch-alias']['dev-main'];
}
}
+*/
$phar = new \Phar($pharFile, 0, 'composer.phar');
$phar->setSignatureAlgorithm(\Phar::SHA512);