summaryrefslogtreecommitdiff
path: root/composer-noxdg.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-27 06:17:19 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-27 06:17:19 +0000
commitd7612666c8254912c85856b27e36f7aaee71d88b (patch)
tree5939ff4c0d471af73845d7f615396a5aefb088b1 /composer-noxdg.patch
parent729634e1bbc04360bb86d8cf8ac71e9d1290d4f2 (diff)
automatic import of composeropeneuler24.03_LTS
Diffstat (limited to 'composer-noxdg.patch')
-rw-r--r--composer-noxdg.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/composer-noxdg.patch b/composer-noxdg.patch
new file mode 100644
index 0000000..2927848
--- /dev/null
+++ b/composer-noxdg.patch
@@ -0,0 +1,14 @@
+diff -up ./src/Composer/Factory.php.noxdg ./src/Composer/Factory.php
+--- ./src/Composer/Factory.php.noxdg 2024-04-20 12:34:54.442117723 +0200
++++ ./src/Composer/Factory.php 2024-04-20 12:35:39.497640757 +0200
+@@ -702,6 +702,10 @@ class Factory
+
+ private static function useXdg(): bool
+ {
++ // As XDG is very partially implemented
++ // resulting in command/code in ~/.config
++ return false;
++
+ foreach (array_keys($_SERVER) as $key) {
+ if (strpos((string) $key, 'XDG_') === 0) {
+ return true;