[SCM] Debian package checker branch, master, updated. 2.5.4-82-g634a65f
The following commit has been merged in the master branch:
commit 634a65fac63166bb2faf285760a67c65a19f16d8
Author: Evan Broder <evan@ebroder.net>
Date: Mon Dec 26 09:48:34 2011 -0800
harness: Set environment variables before including other modules
Signed-off-by: Evan Broder <evan@ebroder.net>
diff --git a/reporting/harness b/reporting/harness
index e9969e2..3109bc9 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -61,6 +61,15 @@ use vars qw($LINTIAN_ROOT $LINTIAN_LAB $LINTIAN_ARCHIVEDIR $LINTIAN_DIST
$HTML_DIR $HTML_TMP_DIR $LINTIAN_BIN_DIR $LINTIAN_GPG_CHECK
$LINTIAN_AREA);
+# export Lintian's configuration
+$ENV{'LINTIAN_ROOT'} = $LINTIAN_ROOT;
+$ENV{'LINTIAN_CFG'} = $LINTIAN_CFG;
+$ENV{'LINTIAN_LAB'} = $LINTIAN_LAB;
+$ENV{'LINTIAN_ARCHIVEDIR'} = $LINTIAN_ARCHIVEDIR;
+$ENV{'LINTIAN_DIST'} = $LINTIAN_DIST;
+$ENV{'LINTIAN_AREA'} = $LINTIAN_AREA;
+$ENV{'LINTIAN_ARCH'} = $LINTIAN_ARCH;
+
# import perl libraries
unshift @INC, "$LINTIAN_ROOT/lib";
require Util;
@@ -80,15 +89,6 @@ open(LOG, '>', $log_file)
or Die("cannot open log file $log_file for writing: $!");
system("mkdir -p -m 775 $LINTIAN_BIN_DIR") == 0 || die "$!";
-
-# export Lintian's configuration
-$ENV{'LINTIAN_ROOT'} = $LINTIAN_ROOT;
-$ENV{'LINTIAN_CFG'} = $LINTIAN_CFG;
-$ENV{'LINTIAN_LAB'} = $LINTIAN_LAB;
-$ENV{'LINTIAN_ARCHIVEDIR'} = $LINTIAN_ARCHIVEDIR;
-$ENV{'LINTIAN_DIST'} = $LINTIAN_DIST;
-$ENV{'LINTIAN_AREA'} = $LINTIAN_AREA;
-$ENV{'LINTIAN_ARCH'} = $LINTIAN_ARCH;
$ENV{'PATH'} = $LINTIAN_BIN_DIR . ':' . $ENV{'PATH'};
if ($LINTIAN_GPG_CHECK) {
--
Debian package checker
Reply to: