summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Deps.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-02-15 23:18:31 +0100
committerGuillem Jover <guillem@debian.org>2015-03-30 20:22:38 +0200
commit01abe8afb95f4bafb1f192fb3fe451a95cd2e3f8 (patch)
tree2384393b6e59f3b852a9ec70a4733e5f4310847a /scripts/Dpkg/Deps.pm
parent046ad868331a9f1581837404449b4320e6d09c36 (diff)
downloaddpkg-01abe8afb95f4bafb1f192fb3fe451a95cd2e3f8.tar.gz
perl: Rework use and exporter declarations
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.
Diffstat (limited to 'scripts/Dpkg/Deps.pm')
-rw-r--r--scripts/Dpkg/Deps.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/Dpkg/Deps.pm b/scripts/Dpkg/Deps.pm
index 06ddb0cfd..947cf13c8 100644
--- a/scripts/Dpkg/Deps.pm
+++ b/scripts/Dpkg/Deps.pm
@@ -50,6 +50,15 @@ use strict;
use warnings;
our $VERSION = '1.05';
+our @EXPORT = qw(
+ deps_concat
+ deps_parse
+ deps_eval_implication
+ deps_iterate
+ deps_compare
+);
+
+use Exporter qw(import);
use Dpkg::Version;
use Dpkg::Arch qw(get_host_arch get_build_arch);
@@ -57,10 +66,6 @@ use Dpkg::BuildProfiles qw(get_build_profiles);
use Dpkg::ErrorHandling;
use Dpkg::Gettext;
-use Exporter qw(import);
-our @EXPORT = qw(deps_concat deps_parse deps_eval_implication
- deps_iterate deps_compare);
-
=item deps_eval_implication($rel_p, $v_p, $rel_q, $v_q)
($rel_p, $v_p) and ($rel_q, $v_q) express two dependencies as (relation,