From ea22158eb8b0dcaf42b0cdacd5b4560764f353c8 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 2 Apr 2016 03:19:17 +0200 Subject: Dpkg::Changelog: Add new Timestamp field to output This field contains the date of the entry in seconds since the epoch. To make it easier to retrieve the date in a format that is easier to handle. --- scripts/Dpkg/Control/FieldsCore.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/Dpkg/Control') diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm index 85729a028..1f01ae0b0 100644 --- a/scripts/Dpkg/Control/FieldsCore.pm +++ b/scripts/Dpkg/Control/FieldsCore.pm @@ -332,6 +332,9 @@ our %FIELDS = ( allowed => ALL_SRC, separator => FIELD_SEP_COMMA, }, + 'Timestamp' => { + allowed => CTRL_CHANGELOG, + }, 'Triggers-Awaited' => { allowed => CTRL_FILE_STATUS, separator => FIELD_SEP_SPACE, @@ -425,7 +428,7 @@ our %FIELD_ORDER = ( ], CTRL_CHANGELOG() => [ qw(Source Binary-Only Version Distribution Urgency Maintainer - Date Closes Changes) + Timestamp Date Closes Changes) ], CTRL_FILE_STATUS() => [ # Same as fieldinfos in lib/dpkg/parse.c qw(Package Essential Status Priority Section Installed-Size Origin -- cgit v1.2.3