The following commit has been merged in the master branch:
commit 4da4f0145a451a13eab2cdb6b1d5e46d857fd93b
Author: Raphael Hertzog <[email protected]>
Date:   Mon Mar 2 18:10:40 2009 +0100

    dpkg-genchanges: correctly handles additional upstream tarballs
    
    The source format 3.0 (quilt) allows additional upstream tarballs
    named <pkg>_<upstreamversion>.orig-<component>.tar.<ext>. They
    should be treated like normal .orig tarballs and be left out
    like them in normal "binary and diff upload".

diff --git a/debian/changelog b/debian/changelog
index 32d0295..6e9b524 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,10 @@
 dpkg (1.15.1) UNRELEASED; urgency=low
 
+  [ Raphael Hertzog ]
+  * Fix dpkg-genchanges to not include the additional upstream tarballs
+    when they are not desired (specific to source packages using format 3.0
+    quilt).
+
   [ Updated dselect translations ]
   * German (Sven Joachim).
 
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 43b9869..4908808 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -455,9 +455,10 @@ if (!is_binaryonly) {
 
     if ((($sourcestyle =~ m/i/ && not($include_tarball)) ||
         $sourcestyle =~ m/d/) &&
-       grep(m/\.(debian\.tar|diff)\.$comp_regex$/,@sourcefiles)) {
+       grep(m/\.(debian\.tar|diff)\.$comp_regex$/,@sourcefiles))
+    {
        $origsrcmsg= _g("not including original source code in upload");
-       @sourcefiles= grep(!m/\.orig\.tar\.$comp_regex$/,@sourcefiles);
+       @sourcefiles= grep(!m/\.orig(-.+)?\.tar\.$comp_regex$/,@sourcefiles);
     } else {
        if ($sourcestyle =~ m/d/ &&
            !grep(m/\.(debian\.tar|diff)\.$comp_regex$/,@sourcefiles)) {

-- 
dpkg's main repository


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

Reply via email to