The following commit has been merged in the master branch:
commit 51741049b5d8df648e6a08f663bf87c4b5f00529
Author: Raphaël Hertzog <[email protected]>
Date:   Sun Feb 21 02:04:13 2010 +0100

    dpkg-gencontrol: no longer warns if a substvar provided by -V is not used
    
    The warning is meant to catch unused substitutions coming from the file
    and the file is package specific with debhelper.

diff --git a/debian/changelog b/debian/changelog
index c76faa0..02f0529 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,9 @@ dpkg (1.15.6) UNRELEASED; urgency=low
     compared. Closes: #570008
   * dpkg-gencontrol does no longer accept arch-specific dependencies in
     arch: all packages. Closes: #560071
+  * dpkg-gencontrol no longer warns if a substitution variable provided by -V
+    is not used (the warning is meant to catch unused substitutions coming
+    from the file, those are package specific with debhelper). Closes: #557133
 
   [ Guillem Jover ]
   * Handle argument parsing in dpkg-checkbuilddeps and dpkg-scanpackages
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 3d15da2..9e30d90 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -117,6 +117,7 @@ while (@ARGV) {
         $remove{$1}= 1;
     } elsif (m/^-V(\w[-:0-9A-Za-z]*)[=:]/) {
         $substvars->set($1, $');
+       $substvars->no_warn($1);
     } elsif (m/^-T/) {
         $varlistfile= $';
     } elsif (m/^-n/) {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to