Age | Commit message (Collapse) | Author | Files | Lines |
|
We want to be able to check for prerequisites when loading the source
format module. That function used to be called import, which is a
misnomer here, and was not being invoked.
Rename it to the more appropriate prerequisites() and call it if it's
present from the module loading code.
Addresses: #877688
|
|
|
|
|
|
Closes: #826334
|
|
This will print source format specific options depending on the
--format version specified.
|
|
|
|
That is "" or '', and not the unbalanced `' pair.
|
|
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.
|
|
|
|
The old function name was inconsistent with the other gettext family
of short aliases which has already caused some code typos, and functions
starting with underscore are considered by convention private in Perl.
|
|
This way we make sure we don't affect the $_ value for the caller,
in case it was being used.
|
|
|
|
This will make it safe to remove parenthesis around builtins.
|
|
Using boolean operators after predicates for error checking makes the
code flow slightly confusing, do that only after actions, to check if
they succeeded and error out otherwise.
|
|
All changed instances are documentation or private code interfaces.
The only remaining variable instance with a regexp name is a publicly
exposed variable, which will eventually disappear once it has gone
through the deprecation process.
|
|
Add new functions to interact with the exit handlers. Mark @handlers as
deprecated and to stop exporting it on VERSION 2.00.
Addresses Variables::ProhibitPackageVars.
Warned-by: perlcritic
|
|
|
|
Use the lightweight parent instead of the bloated base.
|
|
Lowercase module names are reserved by convention for pragmas, and
there's really no need to diverge here from the general dpkg project
naming convention. Also make sure source package format variant names
are always in lowercase, to not allow names that would not work with
previous dpkg-source versions.
Fixes NamingConventions::Capitalization.
|