summaryrefslogtreecommitdiff
path: root/scripts/Dpkg.pm
AgeCommit message (Collapse)AuthorFilesLines
2019-01-15Dpkg::Source::Format: New moduleGuillem Jover1-0/+4
This new public module centralizes the handling of debian/source/format so that other projects can reuse it instead of having to reimplement it. Prompted-by: Mattia Rizzolo <mattia@debian.org> Ref: https://salsa.debian.org/debian/devscripts/merge_requests/63
2018-10-08Dpkg: Add documentation about the module hierarchy and APIGuillem Jover1-0/+165
2018-05-03Dpkg: Fix default DATADIRGuillem Jover1-1/+1
Even though we always override it from the build system the default pathname got out-of-sync with the repository when the architecture tables got moved into the data directory. Fixes: commit 97309bef8b664c2d58cb689a3e82848021ae9bad
2017-05-18Bump version to 1.19.0Guillem Jover1-1/+1
2017-05-17build: Detect the required GNU patchGuillem Jover1-1/+12
This makes sure the perl module is using a directory traversal resistant patch implementation, currently that's only GNU patch. Fixes: CVE-2017-8283 Stable-Candidate: 1.17.x
2016-12-17build: Honor DPKG_DATADIR again in the installed Dpkg modulesGuillem Jover1-1/+3
This was an explicit public interface, documented in the man page. It is also the only way to cleanly override the architecture tables, which might be needed in certain circumstances. Partially revert the commit c3a9a82fcf58df34077638cdbfd7bb752624629e, but preserve the code simplification.
2016-10-30Dpkg: Add new Dpkg::PROGMAKE variable to store GNU make command nameGuillem Jover1-1/+7
2016-10-30Dpkg: Add new Dpkg::PROGTAR variable to store GNU tar command nameGuillem Jover1-1/+12
2016-10-30build: Do not honor DPKG_DATADIR on the installed Dpkg moduleGuillem Jover1-2/+1
Move the environment variable DPKG_DATADIR override for Dpkg::DATADIR into the first assignment, so that the new replacement logic can make it disappear at installation time. This simplifies the code and reduces the exposure of this internal purpose machinery.
2015-05-18scripts: Document dpkg version when module versions got bumpedGuillem Jover1-2/+2
This has two purposes, first it will make it easier to know if the module version needs to be bumped for the current development release, and second it will make it easier for users to know how "old" that module version is, and to which dpkg series and specific version it corresponds to.
2015-03-30perl: Rework use and exporter declarationsGuillem Jover1-2/+15
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-12-28Bump version to 1.18.0Guillem Jover1-1/+1
2014-10-12Dpkg: Document public moduleGuillem Jover1-0/+60
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
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-8/+16
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-0/+2
This will make life easier for downstreams using different paths. Allow overriding pkgconfdir at configure time.
2013-05-08perl: Unify regex delimiters to //, {} or <>Guillem Jover1-1/+1
Fixes RegularExpressions::ProhibitUnusualDelimiters. Warned-by: perlcritic
2013-05-04Do not use double-quotes on strings that do not need interpolationGuillem Jover1-5/+5
Using double-quotes imposes a small performance penalty as the perl parser needs to check if any interpolation is needed. Use double-quotes only when the string contains single-quotes. Ideally we'd use double-quotes too for escaped meta-characters that might otherwise be confusing to immediately see if they need interpolation or not, but the policy does not (currently) allow to ignore these. Fixes ValuesAndExpressions::ProhibitInterpolationOfLiterals. Warned-by: perlcritic
2013-03-18Bump version to 1.17.0Guillem Jover1-1/+1
2010-07-03Move Dpkg.pm and Dpkg/Gettext.pm from dpkg to libdpkg-perlGuillem Jover1-6/+0
2010-02-21Add $VERSION numbers to all perl modulesRaphaƫl Hertzog1-0/+2
Modules whose API should be stable have a version 1.00. The modules with version 0.01 are expected to have further API changes in the (near) future or are deemed to be useful mostly for dpkg-dev's internal usage.
2009-11-08Add missing license headersGuillem Jover1-0/+13
2008-02-17Allow overriding $pkgdatadir in DpkgFrank Lichtenheld1-0/+1
* scripts/Dpkg.pm: Allow overriding $pkgdatadir with $ENV{DPKG_DATADIR}. * scripts/Makefile.am (check): Use DPKG_DATADIR. * debian/rules: Remove hack to copy data files to build directory.
2007-12-29Add a warning to avoid adding unnecessary stuff in Dpkg.pmRaphael Hertzog1-0/+6
2007-12-29Dpkg::Compression: New module with compression variables from DpkgGuillem Jover1-9/+0
2007-12-04Dpkg: Include information about supported compression formatsFrank Lichtenheld1-0/+9
Currently this is only used by dpkg-source, but other scripts like dpkg-genchanges will need to use this information, too.
2007-09-20Dpkg.pm: Make regex for $progname more robustFrank Lichtenheld1-1/+1
While it is not very common to have $0 contain no '/', it may happen on occasion (after all it happened to me ;).
2007-07-21Move variables automatically modified at build time to a new style perlGuillem Jover1-0/+17
module.