summaryrefslogtreecommitdiffstats
path: root/php-herrera-io-annotations-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-herrera-io-annotations-rpm.patch')
-rw-r--r--php-herrera-io-annotations-rpm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-herrera-io-annotations-rpm.patch b/php-herrera-io-annotations-rpm.patch
new file mode 100644
index 0000000..83c1736
--- /dev/null
+++ b/php-herrera-io-annotations-rpm.patch
@@ -0,0 +1,12 @@
+diff -up src/lib/Herrera/Annotations/Convert/ToXml.php.rpm src/lib/Herrera/Annotations/Convert/ToXml.php
+--- src/lib/Herrera/Annotations/Convert/ToXml.php.rpm 2015-10-27 16:58:31.834414038 +0100
++++ src/lib/Herrera/Annotations/Convert/ToXml.php 2015-10-27 16:59:44.395738935 +0100
+@@ -16,7 +16,7 @@ use Herrera\Annotations\Tokens;
+ */
+ define(
+ 'HERRERA_ANNOTATIONS_SCHEMA',
+- __DIR__ . '/../../../../../res/annotations.xsd'
++ (getenv('HERRERA_ANNOTATIONS_SCHEMA') ?: '/usr/share/php-herrera-io-annotations/res/annotations.xsd')
+ );
+
+ /**