From fca5d77ea25adcf5e88dc82ad06ee6cefeaa122f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 12 Jun 2012 11:45:07 -0400 Subject: [PATCH] pristine-xz: Add --check=sha256 and compression levels 0 and 0e. Closes: #677241 Thanks, Vincent Ladeuil --- debian/changelog | 2 ++ pristine-xz | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f738279..146a361 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ pristine-tar (1.25) UNRELEASED; urgency=low * Remove unused fts.h include. Closes: #675367 + * pristine-xz: Add --check=sha256 and compression levels 0 and 0e. + Closes: #677241 Thanks, Vincent Ladeuil -- Joey Hess Thu, 31 May 2012 12:33:34 -0400 diff --git a/pristine-xz b/pristine-xz index bffaf3d..b25bed7 100755 --- a/pristine-xz +++ b/pristine-xz @@ -115,7 +115,7 @@ sub readxz { # # So far in the wild only these levels have been seen. # (Note that level 9 can use a lot of memory.) - my $possible_levels = ["6", "9", "6e", "9e"]; + my $possible_levels = ["6", "9", "0", "6e", "9e", "0e"]; return ($possible_levels); } @@ -127,6 +127,7 @@ sub predictxzargs { foreach my $level (@$possible_levels) { push @args, ["-z", "-$level"]; push @args, ["-z", "-$level", "--check=crc32"]; + push @args, ["-z", "-$level", "--check=sha256"]; } return @args; } @@ -190,6 +191,7 @@ sub genxz { next if $param=~/^(-[0-9]e?)$/; next if $param eq '-z'; next if $param eq '--check=crc32'; + next if $param eq '--check=sha256'; die "paranoia check failed on params from delta (@params)"; } @params=split(' ', $delta->{params}); -- 2.34.1