chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test suite: tstunt-parsechangelog: Produce Timestamp field
[dgit.git]
/
tests
/
tstunt
/
dpkg-parsechangelog
diff --git
a/tests/tstunt/dpkg-parsechangelog
b/tests/tstunt/dpkg-parsechangelog
index 436591f696cbda58777ef421bfe8aa4c429eae75..ba6ef54ad634d32e02d0af986e4d3c0db4e712c6 100755
(executable)
--- a/
tests/tstunt/dpkg-parsechangelog
+++ b/
tests/tstunt/dpkg-parsechangelog
@@
-60,7
+60,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/) {