File: 0001-Use-homemade-autoload.patch

package info (click to toggle)
pdepend 2.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,000 kB
  • sloc: php: 60,009; xml: 1,423; makefile: 35; pascal: 34; sql: 34; sh: 8
file content (24 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 24 Jan 2015 17:49:30 -0400
Subject: Use homemade autoload

Work around the lack of proper Composer support.

Forwarded: not-needed
---
 src/bin/pdepend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/pdepend b/src/bin/pdepend
index e7bac25..8504c70 100755
--- a/src/bin/pdepend
+++ b/src/bin/pdepend
@@ -52,7 +52,7 @@ if (strpos('@php_bin@', '@php_bin') === 0) {
 if (file_exists(__DIR__ . '/../../../../autoload.php')) {
     require_once __DIR__ . '/../../../../autoload.php';
 } else {
-    require_once __DIR__ . '/../../vendor/autoload.php';
+    require_once 'PDepend/autoload.php';
 }
 
 // Allow as much memory as possible by default