tkurbad-overlay/dev-php/andig-dbcopy/files/andig-dbcopy-autoloader.patch

16 lines
842 B
Diff

diff '--color=auto' -ur andig-dbcopy-9999.orig/dbcopy andig-dbcopy-9999/dbcopy
--- andig-dbcopy-9999.orig/dbcopy 2025-10-08 11:49:08.945458244 +0200
+++ andig-dbcopy-9999/dbcopy 2025-10-08 11:50:49.194009518 +0200
@@ -11,10 +11,7 @@
}
// find autoloader, borrowed from github.com/behat/behat
-if ((!$loader = includeIfExists(__DIR__ . '/vendor/autoload.php')) &&
- (!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&
- (!$loader = includeIfExists(__DIR__ . '/../../vendor/autoload.php')) &&
- (!$loader = includeIfExists(__DIR__ . '/../../../vendor/autoload.php'))) {
+if (!$loader = includeIfExists('/usr/share/php/Andig/DatabaseCopy/autoload.php')) {
fwrite(STDERR,
'You must set up the project dependencies, run the following commands:' . PHP_EOL .
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .