File: 0001-Adapt-PATH-for-CLI.patch

package info (click to toggle)
php-doctrine-dbal 2.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,908 kB
  • ctags: 4,509
  • sloc: php: 21,245; makefile: 26
file content (31 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 7 Sep 2014 13:51:17 -0400
Subject: Adapt PATH for CLI

Forwarded: not-needed
---
 bin/doctrine-dbal.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/doctrine-dbal.php b/bin/doctrine-dbal.php
index 3d1131f..1a9455d 100644
--- a/bin/doctrine-dbal.php
+++ b/bin/doctrine-dbal.php
@@ -1,3 +1,4 @@
+#!/usr/bin/php
 <?php
 /*
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -20,10 +21,10 @@
 use Symfony\Component\Console\Helper\HelperSet;
 use Doctrine\DBAL\Tools\Console\ConsoleRunner;
 
-$files       = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php');
+$files       = array(__DIR__ . '/../lib/Doctrine/DBAL/autoload.php', __DIR__ . '/../share/php/Doctrine/DBAL/autoload.php');
 $loader      = null;
 $cwd         = getcwd();
-$directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config');
+$directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config', '/etc/doctrine', '/etc/doctrine/dbal');
 $configFile  = null;
 
 foreach ($files as $file) {