[SCM] Debian package checker branch, master, updated. 2.5.3-22-gd8a1449
The following commit has been merged in the master branch:
commit d8a1449a3409ae51eb7a5c005dc7115d07f6edf3
Author: Niels Thykier <niels@thykier.net>
Date: Mon Sep 19 07:42:12 2011 +0200
generate-profiles: Use "current dir" if LINTIAN_ROOT is not set
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/debian/rules b/debian/rules
index e5b3359..feaaf11 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,7 +34,7 @@ endif
profiles: $(profiles)
$(profiles): $(allchecks) private/generate-profiles.pl
- LINTIAN_ROOT='.' private/generate-profiles.pl
+ private/generate-profiles.pl
runtests: $(neededfiles) $(allchecks) $(allcollect) $(tagfiles) $(testfiles)
@echo .... running tests ....
diff --git a/private/generate-profiles.pl b/private/generate-profiles.pl
index 4915527..cd8d9e6 100755
--- a/private/generate-profiles.pl
+++ b/private/generate-profiles.pl
@@ -16,6 +16,12 @@ use constant FIELD_ORDER => (
);
use constant PARAGRAPH_ORDER => ( 'Overridable', 'Severity' );
+
+BEGIN {
+ my $root = $ENV{'LINTIAN_ROOT'}//'.';
+ $ENV{'LINTIAN_ROOT'} = $root;
+}
+
use lib "$ENV{LINTIAN_ROOT}/lib";
use Lintian::Data;
use Util;
--
Debian package checker
Reply to: