File: timestamp-dpkg-1.18.8.patch

package info (click to toggle)
libparse-debianchangelog-perl 1.2.0-12
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 848 kB
  • ctags: 200
  • sloc: perl: 1,380; makefile: 24
file content (37 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Dpkg::Changelog outputs the Timestamp field since 1.18.8
Origin: vendor
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-07-05

--- a/lib/Parse/DebianChangelog.pm
+++ b/lib/Parse/DebianChangelog.pm
@@ -672,6 +672,10 @@
 
 person that created the (first) entry
 
+=item Timestamp
+
+date (see below) as a Unix timestamp
+
 =item Date
 
 date of the (first) entry
@@ -703,7 +707,7 @@
 BEGIN {
     my $i=100;
     grep($FIELDIMPS{$_}=$i--,
-	 qw(Source Version Distribution Urgency Maintainer Date Closes
+	 qw(Source Version Distribution Urgency Maintainer Timestamp Date Closes
 	    Changes));
     $i=1;
     grep($URGENCIES{$_}=$i++,
@@ -720,7 +724,7 @@
 
     my %f;
     foreach my $field (qw( Urgency Source Version
-			   Distribution Maintainer Date )) {
+			   Distribution Maintainer Date Timestamp )) {
 	$f{$field} = $data->[0]{$field};
     }