summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control/Types.pm
AgeCommit message (Collapse)AuthorFilesLines
2017-09-24Dpkg::Control::Types: Move misplaced commentsGuillem Jover1-2/+2
2016-11-03scripts: Add support for .buildinfo filesGuillem Jover1-0/+3
The .buildinfo files are a new type of control files, similar to the .changes files, meant to describe the environment of a build and its artifacts. They are meant to be added to the Debian archive to allow independent parties to reproduce a build and verify the result. Specifications for .buildinfo are available at: <https://wiki.debian.org/ReproducibleBuilds/BuildinfoSpecification> This patch adds support for .buildinfo files in Dpkg::Control, adds new .buildinfo fields to Dpkg::Control::Fields, a new builtin-system-build-paths Dpkg::Vendor hook, and adds a new script named dpkg-genbuildinfo, that will now be called by dpkg-buildpackage before generating the .changes file. [ntyni@debian.org: small changes. ] Closes: #138409 Based-on-patch-by: Jérémy Bobbio <lunar@debian.org> Signed-off-by: Guillem Jover <guillem@debian.org>
2016-07-03man, perl: Remove most AUTHOR sectionsGuillem Jover1-4/+0
These are strongly discouraged by the man-pages project, because they are redundant with the copyright notices, and tend to get out-of-sync. In addition their format is inconsitent. Just remove them in the same way we did for man pages in the past.
2016-07-03Dpkg::Control: Add new autopkgtest control files supportGuillem Jover1-0/+3
Add new CTRL_TESTS control types, new Dpkg::Control::Tests and Dpkg::Control::Tests::Entry modules, add support for the fields that can appear on these control files, and update Dpkg::Index to handle them as well. [niels@thykier.net: Fix logic inversion. ]
2016-01-26Dpkg::Control::Types: Move constant comments into their own lineGuillem Jover1-10/+20
This gets rid of the need to align the comments when longer constants are added, and unifies the style with the rest of the code base.
2016-01-26Dpkg::Control: Add new CTRL_COPYRIGHT control block typesGuillem Jover1-0/+9
The types are CTRL_COPYRIGHT_HEADER, CTRL_COPYRIGHT_FILES and CTRL_COPYRIGHT_LICENSE. These describe the different control blocks of a machine readable debian/copyright file, as specified in <https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/>.
2016-01-26Dpkg::Control: Add new CTRL_REPO_RELEASE control block typeGuillem Jover1-0/+3
2015-03-30perl: Rework use and exporter declarationsGuillem Jover1-3/+13
Place 'use' strict and warnings first, then Exporter 'our' declarations, then Test module imports, then system module imports, then Dpkg module imports, then 'use' parent and overload pragmas, separated by a blank line for each block. Split each exported symbol declaration into its own line to ease modifications.
2014-10-12scripts: Document private modules as such in a CHANGES sectionGuillem Jover1-0/+6
This is to try to make sure, that even if documented, people will not accidentally rely on private modules, that have not API stability guarantees.
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
2013-06-22perl: Add a VERSION to all modulesGuillem Jover1-0/+2
Addresses Modules::RequireVersionVar.
2013-06-22scripts: Do not inherit from Exporter just import its importGuillem Jover1-1/+1
Do not use base which is bloated, and we don't need any other of Exporter's inherited methods anyway.
2013-06-22Dpkg: Deprecate lowercase exported by default variablesGuillem Jover1-1/+1
Rename, uppercase and do not export new variables by default, to avoid cluttering the caller namespace, and to give them consistent names. We'll keep the old variables for a while, to not break uses from external modules. Addresses Variables::ProhibitPackageVars.
2013-06-21scripts: Use a new Dpkg::CONFDIR variable instead of literal stringsGuillem Jover1-1/+1
This will make life easier for downstreams using different paths. Allow overriding pkgconfdir at configure time.
2013-04-27Dpkg::Control::Type: Use strict and warningsGuillem Jover1-0/+3
Fixes TestingAndDebugging::RequireUseStrict and TestingAndDebugging::RequireUseWarnings. Warned-by: perlcritic
2011-07-07Refer to Sources and Packages files as part of a repositoryGuillem Jover1-2/+2
Instead of as being of exclusive use or owned by APT, which has never been the case. Those files existed long before APT even existed.
2010-02-26Update POD documentation to indicate that it's using UTF-8 encodingRaphaël Hertzog1-0/+2
Also fix many spelling errors spotted by lintian.
2009-11-08Add missing license headersGuillem Jover1-0/+13
2009-10-09Dpkg::Control: rename CTRL_APT_* to CTRL_INDEX_*Raphaël Hertzog1-4/+4
The Packages and Sources files are not really specific to APT. Those files are indexes that can be used by other programs.
2009-09-19Dpkg::Control: new object interfaceRaphaël Hertzog1-0/+42
The new object interface combines the old Dpkg::Fields::Object and the old parsecdata funtion. The new object can be used like a regular hash and yet it behaves intelligently taking into account all the specifics of control information. Fields are case-insensitive, the order in which they have been read is kept for output stability. The object uses operator overloading and an internal tied hash so that it just does what you mean.