From: Joey Hess Date: Tue, 14 Apr 2009 01:03:43 +0000 (-0400) Subject: pristine-gz: Fix generation of gz files that have a null filename field. X-Git-Tag: 1.00~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4bc6f1a48d7dc5a8a1522d4424f14ed4dc00c5d;p=tools%2Fpristine-tar.git pristine-gz: Fix generation of gz files that have a null filename field. --- diff --git a/debian/changelog b/debian/changelog index 6c1767e..043b911 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,7 @@ pristine-tar (1.00) UNRELEASED; urgency=low is passed. This bug prevented pristine-gz gengz from recreating the gz in some cases. * Add aliases ci and co for commit and checkout. Closes: #500388 + * pristine-gz: Fix generation of gz files that have a null filename field. Stats: Deltas for all 14294 tarballs in the Debian archive now use XXX MB total. diff --git a/pristine-gz b/pristine-gz index f0e79a1..32c6fbf 100755 --- a/pristine-gz +++ b/pristine-gz @@ -376,9 +376,6 @@ sub gengz { my $filename=; chomp $filename; $filename=~s/^.*\///; # basename isn't strong enough - if (! length $filename) { - $filename="input"; - } close IN; open (IN, "$tempdir/timestamp") || die "delta lacks timestamp file ($!)"; my $timestamp=;