Author: adsb
Date: 2009-05-11 19:51:53 +0000 (Mon, 11 May 2009)
New Revision: 1879
Modified:
trunk/debian/changelog
trunk/scripts/uscan.pl
Log:
uscan: Pass -n to gzip when repacking bz2 files to ensure consistent
checksums. Thanks, Damyan Ivanov. (Closes: #504672)
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-05-11 19:45:50 UTC (rev 1878)
+++ trunk/debian/changelog 2009-05-11 19:51:53 UTC (rev 1879)
@@ -10,6 +10,8 @@
by Felipe Sateler. (Closes: #527396)
* rc-alert: Use standard single quotes in the debtags section of the manpage
to avoid odd formatting and warnings from man
+ * uscan: Pass -n to gzip when repacking bz2 files to ensure consistent
+ checksums. Thanks, Damyan Ivanov. (Closes: #504672)
-- Adam D. Barratt <[email protected]> Sat, 02 May 2009 20:47:39 +0100
Modified: trunk/scripts/uscan.pl
===================================================================
--- trunk/scripts/uscan.pl 2009-05-11 19:45:50 UTC (rev 1878)
+++ trunk/scripts/uscan.pl 2009-05-11 19:51:53 UTC (rev 1879)
@@ -1289,7 +1289,7 @@
if ($repack and $newfile_base =~ /^(.*)\.(tar\.bz2|tbz2?)$/) {
print "-- Repacking from bzip2 to gzip\n" if $verbose;
my $newfile_base_gz = "$1.tar.gz";
- system("bunzip2 -c $destdir/$newfile_base | gzip -9 >
$destdir/$newfile_base_gz") == 0
+ system("bunzip2 -c $destdir/$newfile_base | gzip -n -9 >
$destdir/$newfile_base_gz") == 0
or die "repacking from bzip2 to gzip failed\n";
unlink "$destdir/$newfile_base";
$newfile_base = $newfile_base_gz;
--
To unsubscribe, send mail to [email protected].