summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-06 10:19:13 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-06 10:19:13 +0200
commit48ad3dfffc1b485837169bf20006fc564e41ca12 (patch)
tree5b778ec730b691d85f474f2195d3b3343615cebc
parentf2dfd49cb0f96867b467a32c5a97924a89db409c (diff)
php-sabre-vobject: drop old patch
-rw-r--r--sabre-vobject-cmd.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/sabre-vobject-cmd.patch b/sabre-vobject-cmd.patch
deleted file mode 100644
index 8f03e54..0000000
--- a/sabre-vobject-cmd.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- bin/vobjectvalidate.php.old 2013-12-31 17:24:11.000000000 +0100
-+++ bin/vobjectvalidate.php 2013-12-31 17:24:27.000000000 +0100
-@@ -1,21 +1,18 @@
--#!/usr/bin/env php
-+#!/usr/bin/php
- <?php
-
- namespace Sabre\VObject;
-
--// This sucks.. we have to try to find the composer autoloader. But chances
--// are, we can't find it this way. So we'll do our bestest
--$paths = array(
-- __DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
-- __DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
--);
-+// Simple PSR-0 autoloader
-+// dont rely on include path as pear directory
-+// may contains old incompatible version
-
--foreach($paths as $path) {
-- if (file_exists($path)) {
-- include $path;
-- break;
-+spl_autoload_register(function ($class) {
-+ if (strpos($class, 'Sabre\\')===0) {
-+ $file = '/usr/share/php/'.str_replace('\\', '/', $class).'.php';
-+ @include $file;
- }
--}
-+});
-
- if (!class_exists('Sabre\\VObject\\Version')) {
- fwrite(STDERR, "Composer autoloader could not be properly loaded.\n");