Explorar el Código

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".
Raphael Hertzog hace 17 años
padre
commit
4da4f0145a
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. 5 0
      debian/changelog
  2. 3 2
      scripts/dpkg-genchanges.pl

+ 5 - 0
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).
 

+ 3 - 2
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)) {