Age | Commit message (Collapse) | Author | Files | Lines |
|
Use make_path() instead of mkpath(), and remove_tree() instead of
rmtree().
|
|
This allows to easily replace the shebang at installation time to use
the system perl interpreter and will make it easier to analyze all
perl scripts in the source tree.
|
|
Addresses RegularExpressions::ProhibitFixedStringMatches.
Warned-by: perlcritic
|
|
|
|
Switch code that uses roughly more explicit instances of the topic
variable than implicit ones.
Addresses BuiltinFunctions::ProhibitUselessTopic.
Warned-by: perlcritic
|
|
This is automatically handled by «dpkg-deb --field» now that it uses
the libdpkg deb822 parser.
|
|
Switch more URLs, now that these services have had SSL enabled.
|
|
These are false positives, as when there's no match perl will leave
the subpattern variables untouched. We'll just use the opportunity to
unconfuse perlcritic, making some of those variable usages more clear
by using intermediate variables.
Fixes RegularExpressions::ProhibitUnusedCapture.
Warned-by: perlcritic
|
|
Fixes Variables::ProhibitMatchVars.
Warned-by: perlcritic
|
|
|
|
Fixes InputOutput::RequireBracedFileHandleWithPrint.
Warned-by: perlcritic
|
|
Addresses InputOutput::RequireBracedFileHandleWithPrint.
Warned-by: perlcritic
|
|
Addresses ErrorHandling::RequireCarping.
Warned-by: perlcritic
|
|
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.
|
|
Fixes InputOutput::RequireCheckedOpen.
Warned-by: perlcritic
|
|
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.
|
|
This module has a problematic license, so there's no point in doing
a more intrusive cleanup, just uppercase the variable and be done
with it.
Addresses Variables::ProhibitPackageVars.
Warned-by: perlcritic
|
|
The code is already using a $::ftp variable to be able to cleanup on
errors, just move the definition of the $ftp variable outside of the
download() function.
Addresses Variables::ProhibitPackageVars.
Warned-by: perlcritic
|
|
Fixes CodeLayout::ProhibitHardTabs.
Warned-by: perlcritic
|
|
|
|
Addresses Modules::RequireVersionVar.
|
|
|
|
Addresses NamingConventions::Capitalization.
|
|
The variables used on a foreach loop are local to that block, so if
we wanted to use it after the loop is finished the last value would
be gone.
Fixes Variables::RequireLexicalLoopIterators.
Warned-by: perlcritic
|
|
Fixes Modules::ProhibitConditionalUseStatements.
Warned-by: perlcritic
|
|
Fixes RegularExpressions::ProhibitUnusualDelimiters.
Warned-by: perlcritic
|
|
Do not fix the shlibs conffiles to avoid possible useless prompts.
Fixes CodeLayout::ProhibitTrailingWhitespace.
Warned-by: perlcritic
|
|
Fixes ValuesAndExpressions::ProhibitMismatchedOperators.
Warned-by: perlcritic
|
|
Fixes Variables::ProhibitUnusedVariables.
Warned-by: perlcritic
|
|
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
|
|
Addresses ValuesAndExpressions::ProhibitInterpolationOfLiterals.
Warned-by: perlcritic
|
|
|
|
Fixes InputOutput::ProhibitBarewordFileHandles.
Warned-by: perlcritic
|
|
Fixes InputOutput::ProhibitTwoArgOpen.
Warned-by: perlcritic
|
|
This also fixes a typo ($VAL1 → $VAR1), and adds %config to the
Dselect::Ftp module exported variables.
|
|
|
|
|
|
This gets rid of the need to hardcode the perl module path in the
scripts. The Dselect methods are not really Debian specific anyway.
|
|
This makes the HEREDOC quoting-style used explicit, so that it's obvious
if the code text will get interpolated or not.
Fixes ValuesAndExpressions::RequireQuotedHeredocTerminator.
Warned-by: perlcritic
|
|
This makes sure the functions always return the appropriate value
independent of the context.
Fixes Subroutines::ProhibitExplicitReturnUndef.
Warned-by: perlcritic
|
|
These just clutter the code base, as adding modelines for each possible
editor out there does not scale, and they are currently not exhaustive
anyway.
|
|
|
|
|
|
These do not change any license, they just clarify the current state.
For old dselect methods that were already present in the dpkg project,
the license remains GPL2+, for files imported from the dpkg-ftp and
dpkg-multicd projects the license remains GPL2-only for now.
|
|
Autoconf provides an AC_PROG_MKDIR_P macro defining MKDIR_P which is
called by AM_INIT_AUTOMAKE; the obsolete mkdir_p, currently aliased to
MKDIR_P will disappear with automake 1.13.
|
|
|
|
The location of programs on the filesystem is not standardized, and as
such using absolute paths is not a portable assumption to make. This
causes test suite errors on at least Mac OS X.
Use just the program name on perl system() calls, when needing the full
path use Dpkg::Path::find_command() in perl code and “which” in shell
code.
Reported-by: Stuart Ambler <stuart@zulazon.com>
|
|
Found by codespell.
|
|
Remove trailing spaces. Remove blank lines not separating different code
blocks. Remove blank lines at the end of the file.
|