add symlink patch

This commit is contained in:
Daniel Seifert 2022-07-07 14:32:38 +02:00
parent 509ede35e8
commit ab916d8135
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
3 changed files with 33 additions and 15 deletions

View File

@ -1,13 +0,0 @@
--- src/Installer/Package/AbstractPackageInstaller_Original.php 2021-04-12 16:59:26.000000000 +0200
+++ src/Installer/Package/AbstractPackageInstaller.php 2021-04-29 16:16:31.000000000 +0200
@@ -198,9 +198,7 @@
*/
protected function askQuestion($messageToAsk)
{
- $userInput = $this->getIO()->ask($messageToAsk, 'N');
-
- return $this->isPositiveUserInput($userInput);
+ return true;
}
/**

View File

@ -9,8 +9,8 @@ composer require cweagans/composer-patches
"extra": {
"patches": {
"oxid-esales/oxideshop-composer-plugin": {
"Don't ask, simple install all new":
"https://git.d3data.de/D3Public/oxid_patches/raw/branch/composer-install/OxidAskYes.patch"
"don't copy module files to source, symlink it only":
"https://git.d3data.de/D3Public/oxid_patches/raw/branch/symlinksInSource/symlinkmodules.patch"
}
},
"enable-patching": true

31
symlinkmodules.patch Normal file
View File

@ -0,0 +1,31 @@
From 84a2fb615a64f4a52ef44adbb19eda48e9e1b1f3 Mon Sep 17 00:00:00 2001
From: Daniel Seifert <ds@shopmodule.com>
Date: Thu, 7 Jul 2022 14:16:51 +0200
Subject: [PATCH 1/1] create symlinks in source folder instead of copying
module files
---
.../Module/Install/Service/ModuleFilesInstaller.php | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php b/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
index dff8629e6..d6a96be59 100644
--- a/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
+++ b/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
@@ -52,11 +52,9 @@ class ModuleFilesInstaller implements ModuleFilesInstallerInterface
{
$finder = $this->getFinder($package->getPackageSourcePath(), $package->getBlackListFilters());
- $this->fileSystemService->mirror(
+ $this->fileSystemService->symlink(
$package->getPackageSourcePath(),
- $this->getTargetPath($package),
- $finder,
- ['override' => true]
+ $this->getTargetPath($package)
);
}
--
2.26.1.windows.1