diff options
-rw-r--r-- | composer-rpm.patch | 15 | ||||
-rw-r--r-- | composer.spec | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/composer-rpm.patch b/composer-rpm.patch index bbf0feb..5f05a85 100644 --- a/composer-rpm.patch +++ b/composer-rpm.patch @@ -108,3 +108,18 @@ diff -up ./tests/Composer/Test/PolyfillTestCase.php.rpm ./tests/Composer/Test/Po } else { abstract class PolyfillTestCase extends TestCase { +--- ./src/Composer/InstalledVersions.php.rpm 2021-06-07 08:18:59.326450774 +0200 ++++ ./src/Composer/InstalledVersions.php 2021-06-07 08:19:11.525413189 +0200 +@@ -315,10 +315,9 @@ + } + } + +- if (null === self::$installed) { +- self::$installed = require __DIR__ . '/installed.php'; ++ if (null !== self::$installed) { ++ $installed[] = self::$installed; + } +- $installed[] = self::$installed; + + return $installed; + } diff --git a/composer.spec b/composer.spec index 854049a..2a4826a 100644 --- a/composer.spec +++ b/composer.spec @@ -39,7 +39,7 @@ Name: composer Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Dependency Manager for PHP License: MIT @@ -330,6 +330,9 @@ exit $ret %changelog +* Mon Jun 7 2021 Remi Collet <remi@remirepo.net> - 2.1.1-2 +- fix Composer\InstalledVersions RPM installation + * Fri Jun 4 2021 Remi Collet <remi@remirepo.net> - 2.1.1-1 - update to 2.1.1 |