Przeglądaj źródła

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 17 lat temu
rodzic
commit
4da4f0145a
2 zmienionych plików z 8 dodań i 2 usunięć
  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
 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 ]
   [ Updated dselect translations ]
   * German (Sven Joachim).
   * German (Sven Joachim).
 
 

+ 3 - 2
scripts/dpkg-genchanges.pl

@@ -455,9 +455,10 @@ if (!is_binaryonly) {
 
 
     if ((($sourcestyle =~ m/i/ && not($include_tarball)) ||
     if ((($sourcestyle =~ m/i/ && not($include_tarball)) ||
 	 $sourcestyle =~ m/d/) &&
 	 $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");
 	$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 {
     } else {
 	if ($sourcestyle =~ m/d/ &&
 	if ($sourcestyle =~ m/d/ &&
 	    !grep(m/\.(debian\.tar|diff)\.$comp_regex$/,@sourcefiles)) {
 	    !grep(m/\.(debian\.tar|diff)\.$comp_regex$/,@sourcefiles)) {