[pkg-haskell-tools] 02/02: dht: Fix PERL5LIB mangling
Joachim Breitner
nomeata at moszumanska.debian.org
Fri Aug 14 09:28:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository pkg-haskell-tools.
commit 354bb1dfaec976849858e755a4f473dc0c627053
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Fri Aug 14 11:28:03 2015 +0200
dht: Fix PERL5LIB mangling
---
dht | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dht b/dht
index 5b873a2..2425aad 100755
--- a/dht
+++ b/dht
@@ -10,13 +10,13 @@ use File::Basename;
use FindBin qw($Bin);;
our $DHT_SCRIPT_DIR;
-$ENV{PERL5LIB} = ":" unless $ENV{PERL5LIB};
+$ENV{PERL5LIB} = ":$ENV{PERL5LIB}" if $ENV{PERL5LIB};
if ($Bin eq "/usr/bin") {
$DHT_SCRIPT_DIR="/var/lib/pkg-haskell-tools/bin";
$ENV{PERL5LIB} = "/var/lib/pkg-haskell-tools/lib" . $ENV{PERL5LIB};
} else {
$DHT_SCRIPT_DIR = "$Bin/scripts";
- $ENV{PERL5LIB} = "$Bin/lib" . $ENV{PERL5LIB};
+ $ENV{PERL5LIB} = "$Bin/lib" . ($ENV{PERL5LIB}|| "");
$ENV{PATH} = "$Bin:$ENV{PATH}";
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/pkg-haskell-tools.git
More information about the Pkg-haskell-commits
mailing list