[packages/satis] add autoload.patch
glen
glen at pld-linux.org
Wed Jan 6 21:54:27 CET 2016
commit dd375324c791ac1159a7ad0a38423b56c0046199
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 6 22:54:18 2016 +0200
add autoload.patch
autoload.patch | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
---
diff --git a/autoload.patch b/autoload.patch
new file mode 100644
index 0000000..f29427a
--- /dev/null
+++ b/autoload.patch
@@ -0,0 +1,26 @@
+--- satis-1.0.0-1.alpha1.152.g48191ff.0.5/bin/satis~ 2016-01-06 22:35:05.000000000 +0200
++++ satis-1.0.0-1.alpha1.152.g48191ff.0.5/bin/satis 2016-01-06 22:36:09.726705543 +0200
+@@ -1,7 +1,11 @@
+ #!/usr/bin/php
+ <?php
+
+-require __DIR__.'/../src/bootstrap.php';
++if (file_exists($autoload = __DIR__ . '/../src/bootstrap.php')) {
++ require $autoload;
++} else {
++ require '/usr/share/php/Composer/autoload.php';
++}
+
+ use Composer\Satis\Console\Application;
+
+--- satis-1.0.0-1.alpha1.152.g48191ff.0.5/src/Composer/Satis/Command/BuildCommand.php~ 2016-01-06 09:33:13.000000000 +0200
++++ satis-1.0.0-1.alpha1.152.g48191ff.0.5/src/Composer/Satis/Command/BuildCommand.php 2016-01-06 22:45:02.087397288 +0200
+@@ -254,7 +254,7 @@
+
+ $data = json_decode($content);
+
+- $schemaFile = __DIR__.'/../../../../res/satis-schema.json';
++ $schemaFile = __DIR__.'/../res/satis-schema.json';
+ $schema = json_decode(file_get_contents($schemaFile));
+ $validator = new Validator();
+ $validator->check($data, $schema);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/satis.git/commitdiff/dd375324c791ac1159a7ad0a38423b56c0046199
More information about the pld-cvs-commit
mailing list