diff --git a/OxidAskYes.patch b/OxidAskYes.patch deleted file mode 100644 index 087b7df..0000000 --- a/OxidAskYes.patch +++ /dev/null @@ -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; - } - - /** diff --git a/README.md b/README.md index 09c9dca..464b76e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/symlinkmodules.patch b/symlinkmodules.patch new file mode 100644 index 0000000..8a20108 --- /dev/null +++ b/symlinkmodules.patch @@ -0,0 +1,31 @@ +From 84a2fb615a64f4a52ef44adbb19eda48e9e1b1f3 Mon Sep 17 00:00:00 2001 +From: Daniel Seifert +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 +