Control: tags 1065751 + patch
Control: tags 1065751 + pending

Dear maintainer,

I've prepared an NMU for pristine-tar (versioned as 1.50+nmu2) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Could someone check this, please?

Regards.

Sebastian
diff -Nru pristine-tar-1.50+nmu1/debian/changelog pristine-tar-1.50+nmu2/debian/changelog
--- pristine-tar-1.50+nmu1/debian/changelog	2024-02-25 12:18:32.000000000 +0100
+++ pristine-tar-1.50+nmu2/debian/changelog	2024-03-10 21:38:16.000000000 +0100
@@ -1,3 +1,11 @@
+pristine-tar (1.50+nmu2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Preoperly account -T parameter for xz. Thanks to Jia Tan for the hint.
+    (Closes: #1065751).
+
+ -- Sebastian Andrzej Siewior <sebast...@breakpoint.cc>  Sun, 10 Mar 2024 21:38:16 +0100
+
 pristine-tar (1.50+nmu1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru pristine-tar-1.50+nmu1/pristine-xz pristine-tar-1.50+nmu2/pristine-xz
--- pristine-tar-1.50+nmu1/pristine-xz	2024-02-25 12:18:06.000000000 +0100
+++ pristine-tar-1.50+nmu2/pristine-xz	2024-03-10 21:38:12.000000000 +0100
@@ -416,11 +416,11 @@
       next if $param eq '--check=crc64';
       next if $param eq '--check=sha256';
       next if $param =~ /^(--block-list=[0-9,]+)$/;
-      next if $param =~ /^-T[0-9]+$/;
+
       if ($param =~ /^-T[0-9]+$/) {
-			$threads_set = 1;
-			next;
-		}
+         $threads_set = 1;
+         next;
+      }
     } elsif ($delta->{program} eq 'pixz') {
       next if $param eq '-t';
     }
@@ -429,8 +429,10 @@
 
   @params = split(' ', $delta->{params});
 
-  if (!$threads_set) {
-    push @params, '-T1';
+  if ($delta->{program} eq 'xz') {
+     if (!$threads_set) {
+        push @params, '-T1';
+     }
   }
 
   doit($program, @params, $file);

Reply via email to