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

[lintian] 01/01: Allow debhelper "--with" addons to be quoted



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit 0622f0bde185d8bb7c291a6102564da21f131dd4
Author: Yann Soubeyrand <yann-externe.soubeyrand@edf.fr>
Date:   Thu Oct 27 22:04:20 2016 +0200

    Allow debhelper "--with" addons to be quoted
    
    dh $@ --with 'python2'
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/debhelper.pm | 4 ++--
 debian/changelog    | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/checks/debhelper.pm b/checks/debhelper.pm
index 62c6372..1dd99d5 100644
--- a/checks/debhelper.pm
+++ b/checks/debhelper.pm
@@ -134,8 +134,8 @@ sub run {
             $seencommand = 1;
             $needbuilddepends = 1;
             $needtomodifyscripts = 1;
-            while (m/\s--with(?:=|\s+)(\S+)/go) {
-                my $addon_list = $1;
+            while (m/\s--with(?:=|\s+)(['"]?)(\S+)\1/go) {
+                my $addon_list = $2;
                 for my $addon (split(m/,/o, $addon_list)) {
                     $addon =~ y,-,_,;
                     my $depends =$dh_addons_manual->value($addon)
diff --git a/debian/changelog b/debian/changelog
index 1f12dfe..29104a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,10 @@ lintian (2.5.50) UNRELEASED; urgency=medium
   * checks/binaries.desc:
     + [NT] Update hardening-no-pie description to reflect that
       PIE is on by default in Debian.
+  * checks/debhelper.pm
+    + [BR] Apply patch from Yann Soubeyrand :
+      "Allow debhelper "--with" addons to be quoted".
+      (Closes: #839822)
 
   * data/spelling/corrections:
     + [PW] Add more corrections.

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


Reply to: