summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control/FieldsCore.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-11-14 00:51:06 +0100
committerGuillem Jover <guillem@debian.org>2016-11-16 03:20:13 +0100
commit8ff4522cf0f08659dee954ac2c6256c607b045df (patch)
tree9a9df2472d4e09511845ccd7420d083ff14c7b64 /scripts/Dpkg/Control/FieldsCore.pm
parentda73ac074ed8b5e9aa20684b9da5c8e64469adb1 (diff)
downloaddpkg-8ff4522cf0f08659dee954ac2c6256c607b045df.tar.gz
dpkg-genbuildinfo: Add Build-Date field
This records the time the build happened. This might be useful when there is a need to track down problems caused by external time-based events not visible from inside the build system. Things like hardware, software deployment or other such failures.
Diffstat (limited to 'scripts/Dpkg/Control/FieldsCore.pm')
-rw-r--r--scripts/Dpkg/Control/FieldsCore.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm
index 4c0ae50c8..7c7e759f4 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -115,6 +115,9 @@ our %FIELDS = (
dependency => 'union',
dep_order => 6,
},
+ 'Build-Date' => {
+ allowed => CTRL_FILE_BUILDINFO,
+ },
'Build-Depends' => {
allowed => ALL_SRC,
separator => FIELD_SEP_COMMA,
@@ -472,7 +475,7 @@ our %FIELD_ORDER = (
qw(Format Source Binary Architecture Version
Binary-Only-Changes),
@checksum_fields,
- qw(Build-Origin Build-Architecture Build-Path
+ qw(Build-Origin Build-Architecture Build-Date Build-Path
Installed-Build-Depends Environment),
],
CTRL_FILE_CHANGES() => [