File: 0005-Workaround-Composer-InstalledVersions-feature.patch

package info (click to toggle)
spip 4.4.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,764 kB
  • sloc: php: 299,759; javascript: 67,976; xml: 4,388; sh: 165; makefile: 92
file content (30 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Tue, 11 Mar 2025 08:00:25 +0100
Subject: Workaround Composer InstalledVersions feature

---
 vendor/spip-league/kernel/src/InstallationDetector.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vendor/spip-league/kernel/src/InstallationDetector.php b/vendor/spip-league/kernel/src/InstallationDetector.php
index 70084c2..36687a9 100644
--- a/vendor/spip-league/kernel/src/InstallationDetector.php
+++ b/vendor/spip-league/kernel/src/InstallationDetector.php
@@ -4,8 +4,6 @@ declare(strict_types=1);
 
 namespace SpipLeague\Component\Kernel;
 
-use Composer\InstalledVersions;
-
 class InstallationDetector implements InstallationDetectorInterface
 {
     /** @var array<string,string> */
@@ -35,7 +33,7 @@ class InstallationDetector implements InstallationDetectorInterface
 
     private static function getComposerInstallPath(): string
     {
-        return (string) realpath(InstalledVersions::getRootPackage()['install_path']);
+        return (string) realpath('/usr/share/spip/');
     }
 
     public static function fromDir(string $directory): self