Author: jamessan
Date: 2009-10-30 07:02:21 +0000 (Fri, 30 Oct 2009)
New Revision: 2016

Modified:
   trunk/debian/changelog
   trunk/scripts/debuild.pl
Log:
debuild: Recognize dpkg-source's -z/-Z options.  (Closes: #553205)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-10-18 21:31:48 UTC (rev 2015)
+++ trunk/debian/changelog      2009-10-30 07:02:21 UTC (rev 2016)
@@ -15,6 +15,7 @@
       punctuation characters we strip from the distribution name when we parse
       an "Upload to ..." line.  (Closes: #548171)
     + Consistently use “--nomainttrailer” in the manpage.  (Closes: #544351)
+  * debuild: Recognize dpkg-source's -z/-Z options.  (Closes: #553205)
 
   [ Ryan Niebur ]
   * add w3m to suggests for grep-excuses -w, check for it at runtime too

Modified: trunk/scripts/debuild.pl
===================================================================
--- trunk/scripts/debuild.pl    2009-10-18 21:31:48 UTC (rev 2015)
+++ trunk/scripts/debuild.pl    2009-10-30 07:02:21 UTC (rev 2016)
@@ -786,6 +786,8 @@
     my $targetarch='';
     my $targetgnusystem='';
     my $changedby='';
+    my $compression='';
+    my $comp_level='';
 
     # and one for us
     my @debsign_opts = ();
@@ -811,6 +813,8 @@
        /^-s[iad]$/ and $sourcestyle=$_, push(@dpkg_opts, $_), next;
        /^-i/ and $diffignore=$_, push(@dpkg_opts, $_), next;
        /^-I/ and push(@tarignore, $_), push(@dpkg_opts, $_), next;
+       /^-Z/ and $compression=$_, push(@passopts, $_), next;
+       /^-z/ and $comp_level=$_, push(@passopts, $_), next;
        $_ eq '-tc' and $cleansource=1, push(@dpkg_opts, $_), next;
        /^-t(.*)/ and $targetgnusystem=$1, push(@dpkg_opts, $_), next; # Ditto  
        $_ eq '-nc' and $noclean=1, $binaryonly ||= '-b', push(@dpkg_opts, $_),
@@ -859,6 +863,8 @@
        /^-s[iad]$/ and $sourcestyle=$_, push(@dpkg_opts, $_), next;
        /^-i/ and $diffignore=$_, push(@dpkg_opts, $_), next;
        /^-I/ and push(@tarignore, $_), push(@dpkg_opts, $_), next;
+       /^-Z/ and $compression=$_, push(@passopts, $_), next;
+       /^-z/ and $comp_level=$_, push(@passopts, $_), next;
        $_ eq '-tc' and $cleansource=1, push(@dpkg_opts, $_), next;
        /^-t(.*)/ and $targetgnusystem=$1, $checkbuilddep=0, next;
        $_ eq '-nc' and $noclean=1, $binaryonly ||= '-b', push(@dpkg_opts, $_),
@@ -1111,7 +1117,7 @@
            push @cmd, @tarignore;
            push @cmd, "-b", $dirn;
            chdir '..' or fatal "can't chdir ..: $!";
-           system_withecho(@cmd);      
+           system_withecho(@cmd);
            chdir $dirn or fatal "can't chdir $dirn: $!";
        }
 
@@ -1215,7 +1221,7 @@
     } # end of debuild dpkg-buildpackage emulation
 
     run_hook('lintian', $run_lintian && $lintian_exists);
-    
+
     if ($run_lintian && $lintian_exists) {
        $<=$>=$uid;  # Give up on root privileges if we can
        $(=$)=$gid;



-- 
To unsubscribe, send mail to [email protected].

Reply via email to