X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftstunt%2Fdpkg-parsechangelog;h=6a9198abb21caccb7b0dc5f5e25fb901e9c08867;hb=047db2064cbc162d8fceff77ec6dd38eab135c6c;hp=4d7cdf84fb3ad426e31ab755dfc3e5e69d3fe682;hpb=523f42f6ba9805aae8245af4f996581d6c7c51a3;p=dgit.git diff --git a/tests/tstunt/dpkg-parsechangelog b/tests/tstunt/dpkg-parsechangelog index 4d7cdf84..6a9198ab 100755 --- a/tests/tstunt/dpkg-parsechangelog +++ b/tests/tstunt/dpkg-parsechangelog @@ -18,6 +18,8 @@ $SIG{__WARN__} = sub { die $_[0]; }; # no use of system, so we avoid #793471 my $infile = "debian/changelog"; +#print STDERR ">@ARGV<\n"; + my @orgargv = @ARGV; if (@ARGV && $ARGV[0] =~ s/^-l//) { @@ -32,6 +34,7 @@ if (@ARGV) { my @npath = grep { $_ ne $strip } @opath; @npath != @opath or die "$0 $k ".($ENV{$k}//"(undef)")." ?"; $ENV{$k} = join ':', @npath; + delete $ENV{$k} if !@npath; } die if $ENV{'DGIT_NO_TSTUNT_CLPARSE'}++; exec 'dpkg-parsechangelog', @orgargv; @@ -59,7 +62,8 @@ for (;;) { Maintainer: $1 Date: $2 END - last; + print "Timestamp: " or die $!; + exec qw(date +%s -d), $2; die $!; } elsif (m/^ --\s*$/) { last; } elsif (!m/\S/) {