diff options
author | Guillem Jover <guillem@debian.org> | 2016-04-02 03:19:17 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-07-03 18:44:22 +0200 |
commit | ea22158eb8b0dcaf42b0cdacd5b4560764f353c8 (patch) | |
tree | a01bbcf3002e20c7eb0865957e04cc31cdd962ef /scripts/Dpkg/Control | |
parent | 4e8550c8e2a4f5aab5b803df0ea77c50e089d2dd (diff) | |
download | dpkg-ea22158eb8b0dcaf42b0cdacd5b4560764f353c8.tar.gz |
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.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r-- | scripts/Dpkg/Control/FieldsCore.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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 |