[debhelper-devel] [debhelper] 09/30: Test::DH: Drop DEB_BUILD_* vars at load

Niels Thykier nthykier at moszumanska.debian.org
Mon Jul 3 14:40:36 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit de6ccbd49e06959a2861ce11230dad26ecc8934b
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Jul 2 11:01:38 2017 +0000

    Test::DH: Drop DEB_BUILD_* vars at load
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 t/Test/DH.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 6abf41e..8e710d2 100644
--- a/t/Test/DH.pm
+++ b/t/Test/DH.pm
@@ -27,6 +27,10 @@ $ENV{PERL5LIB} = join(':', "${ROOT_DIR}/lib", (grep { defined } $ENV{PERL5LIB}))
     if not $ENV{PERL5LIB} or $ENV{PERL5LIB} !~ m{\Q$ROOT_DIR\E(?:/lib)?/?:};
 $ENV{DH_AUTOSCRIPTDIR} = "$ROOT_DIR/autoscripts";
 
+# Drop DEB_BUILD_PROFILES and DEB_BUILD_OPTIONS so they don't interfere
+delete($ENV{DEB_BUILD_PROFILES});
+delete($ENV{DEB_BUILD_OPTIONS});
+
 use Debian::Debhelper::Dh_Lib;
 
 our @EXPORT = qw(

-- 
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