summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-01-02 16:29:49 +0100
committerGuillem Jover <guillem@debian.org>2017-01-23 00:12:19 +0100
commit6c8203440bf443d3031ee2ab8485b16c1b6da3b6 (patch)
tree786c11efff35fa68acd6021a4e1eeda47c45be21 /scripts/Dpkg/Control
parent667b38f6a42647f49464b19cd6792a51aa238fd4 (diff)
downloaddpkg-6c8203440bf443d3031ee2ab8485b16c1b6da3b6.tar.gz
man, Dpkg::Control::FieldsCore: Add new Auto-Built-Package field
This field is used to distinguish packages that have been automatically injected by some build tool, and are not present in the debian/control file.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/FieldsCore.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm
index 7c7e759f4..8eeddadb1 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -73,6 +73,10 @@ our %FIELDS = (
allowed => CTRL_REPO_RELEASE,
separator => FIELD_SEP_SPACE,
},
+ 'Auto-Built-Package' => {
+ allowed => ALL_PKG & ~CTRL_INFO_PKG,
+ separator => FIELD_SEP_SPACE,
+ },
'Binary' => {
allowed => CTRL_PKG_SRC | CTRL_FILE_BUILDINFO | CTRL_FILE_CHANGES,
# XXX: This field values are separated either by space or comma
@@ -459,7 +463,7 @@ my @sum_fields = map { $_ eq 'md5' ? 'MD5sum' : &field_capitalize($_) }
our %FIELD_ORDER = (
CTRL_PKG_DEB() => [
qw(Package Package-Type Source Version Built-Using Kernel-Version
- Built-For-Profiles Architecture Subarchitecture
+ Built-For-Profiles Auto-Built-Package Architecture Subarchitecture
Installer-Menu-Item Essential Origin Bugs
Maintainer Installed-Size), &field_list_pkg_dep(),
qw(Section Priority Multi-Arch Homepage Description Tag Task)