[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: c/lintian: Check DEBRELEASE_DEBS_DIR for .changes files



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

nthykier pushed a commit to branch master
in repository lintian.

commit c3aec9e335fc8994c29f1332850bc991fea6e956
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 9 12:09:48 2016 +0000

    c/lintian: Check DEBRELEASE_DEBS_DIR for .changes files
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 commands/lintian                     | 3 +++
 debian/changelog                     | 6 +++++-
 lib/Lintian/Internal/FrontendUtil.pm | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/commands/lintian b/commands/lintian
index 8c8a96e..eaaa264 100755
--- a/commands/lintian
+++ b/commands/lintian
@@ -1326,6 +1326,9 @@ sub _find_changes {
     my @archs;
     my @dirs = ('..', '../build-area', '/var/cache/pbuilder/result');
 
+    unshift(@dirs, $ENV{'DEBRELEASE_DEBS_DIR'})
+      if exists($ENV{'DEBRELEASE_DEBS_DIR'});
+
     if (not $last) {
         my @errors = $dch->get_parse_errors;
         if (@errors) {
diff --git a/debian/changelog b/debian/changelog
index 0a0cdc9..430200e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,9 +9,13 @@ lintian (2.5.44) UNRELEASED; urgency=medium
       trailing tilde.  (Closes: #819509)  Thanks to Felix Geyer for the bug
       report.
 
-  * command/info.pm:
+  * commands/info.pm:
     + [NT] Accept "--tag" as an alias of "--tags".  Thanks to Robert
       Luberda for the suggestion.  (Closes: #816454)
+  * commands/lintian:
+    + [NT] Also check DEBRELEASE_DEBS_DIR for .changes files when no
+      packages are given on the command line.  Thanks to Sean Whitton for
+      the suggestion.  (Closes: #812568)
 
   * data/standards-version/release-dates:
     + [AB] Add 3.9.8.
diff --git a/lib/Lintian/Internal/FrontendUtil.pm b/lib/Lintian/Internal/FrontendUtil.pm
index a14f523..05f2947 100644
--- a/lib/Lintian/Internal/FrontendUtil.pm
+++ b/lib/Lintian/Internal/FrontendUtil.pm
@@ -55,6 +55,7 @@ sub check_test_feature{
     # (e.g. tar) start in.  In particular, we do not want to inherit
     # some random "TAR_OPTIONS" or "GZIP" values.
     my %PRESERVE_ENV = map { $_ => 1 } qw(
+      DEBRELEASE_DEBS_DIR
       HOME
       LANG
       LC_ALL

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


Reply to: