[SCM] Debian package checker branch, master, updated. 2.5.4-81-g7ba8e34
The following commit has been merged in the master branch:
commit 7ba8e344398947b3b45a85f8a6f0455296125bc8
Author: Niels Thykier <niels@thykier.net>
Date: Fri Dec 23 21:49:47 2011 +0100
Set $ENV{LINTIAN_ROOT} in generate-lintian-pod
Lintian::Architecture is indirectly loaded and uses Lintian::Data,
which assumes $ENV{LINTIAN_ROOT} is set. Set $ENV{LINTIAN_ROOT} to
work around the "uninitialized variable" warnings.
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/private/generate-lintian-pod b/private/generate-lintian-pod
index bddfecd..f712264 100755
--- a/private/generate-lintian-pod
+++ b/private/generate-lintian-pod
@@ -4,7 +4,10 @@ use strict;
use warnings;
# Find the lib directory of lintian-root (defaulting to ./lib/)
-use lib ($ENV{LINTIAN_ROOT}//'.') . '/lib/';
+BEGIN {
+ $ENV{LINTIAN_ROOT} //= '.';
+}
+use lib $ENV{LINTIAN_ROOT} . '/lib/';
use Util qw(read_dpkg_control fail);
--
Debian package checker
Reply to: