[debhelper-devel] [debhelper] 01/01: Test::DH: Set PERL5LIB

Niels Thykier nthykier at moszumanska.debian.org
Fri Jun 30 19:11:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch expand-test-suite
in repository debhelper.

commit c05960eca8409e9b0bd30d22b796750d5d9ed8d7
Author: Niels Thykier <niels at thykier.net>
Date:   Fri Jun 30 19:11:14 2017 +0000

    Test::DH: Set PERL5LIB
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 t/Test/DH.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 832f239..6b3499d 100644
--- a/t/Test/DH.pm
+++ b/t/Test/DH.pm
@@ -18,6 +18,8 @@ BEGIN {
 use lib "$ROOT_DIR/lib";
 
 $ENV{PATH} = "$ROOT_DIR:$ENV{PATH}" if $ENV{PATH} !~ m{\Q$ROOT_DIR\E/?:};
+$ENV{PERL5LIB} = join(':', "${ROOT_DIR}/lib", (grep { defined } $ENV{PERL5LIB}))
+    if not $ENV{PERL5LIB} or $ENV{PERL5LIB} !~ m{\Q$ROOT_DIR\E(?:/lib)?/?:};
 
 use Debian::Debhelper::Dh_Lib;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list