summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bzdbcopy.pl2
-rwxr-xr-xcontrib/console.pl2
-rwxr-xr-xcontrib/convert-workflow.pl2
-rwxr-xr-xcontrib/extension-convert.pl2
-rwxr-xr-xcontrib/fixperms.pl2
-rwxr-xr-xcontrib/merge-users.pl2
-rwxr-xr-xcontrib/recode.pl7
-rwxr-xr-xcontrib/sendbugmail.pl2
-rwxr-xr-xcontrib/sendunsentbugmail.pl2
-rwxr-xr-xcontrib/syncLDAP.pl2
10 files changed, 13 insertions, 12 deletions
diff --git a/contrib/bzdbcopy.pl b/contrib/bzdbcopy.pl
index fcdbefd56..73160cf6a 100755
--- a/contrib/bzdbcopy.pl
+++ b/contrib/bzdbcopy.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::DB;
diff --git a/contrib/console.pl b/contrib/console.pl
index fe2342cd9..b2060bbdb 100755
--- a/contrib/console.pl
+++ b/contrib/console.pl
@@ -10,7 +10,7 @@ use warnings;
use File::Basename;
BEGIN { chdir dirname($0) . "/.."; }
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
diff --git a/contrib/convert-workflow.pl b/contrib/convert-workflow.pl
index d9bffb7bb..1cbabca37 100755
--- a/contrib/convert-workflow.pl
+++ b/contrib/convert-workflow.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Config qw(:admin);
diff --git a/contrib/extension-convert.pl b/contrib/extension-convert.pl
index 91a77b839..d4f29d855 100755
--- a/contrib/extension-convert.pl
+++ b/contrib/extension-convert.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
diff --git a/contrib/fixperms.pl b/contrib/fixperms.pl
index 33b042c66..a6e31fe70 100755
--- a/contrib/fixperms.pl
+++ b/contrib/fixperms.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Install::Filesystem qw(fix_all_file_permissions);
diff --git a/contrib/merge-users.pl b/contrib/merge-users.pl
index 86b209ab2..8e13b0934 100755
--- a/contrib/merge-users.pl
+++ b/contrib/merge-users.pl
@@ -31,7 +31,7 @@ merge-users.pl - Merge two user accounts.
=cut
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
diff --git a/contrib/recode.pl b/contrib/recode.pl
index e6da47b92..edd9fe423 100755
--- a/contrib/recode.pl
+++ b/contrib/recode.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
@@ -88,17 +88,18 @@ if (exists $switch{'charset'}) {
}
if ($switch{'guess'}) {
- if (!eval { require Encode::Detect::Detector }) {
+ if (!Bugzilla->has_feature('detect_charset')) {
my $root = ROOT_USER;
print STDERR <<EOT;
Using --guess requires that Encode::Detect be installed. To install
Encode::Detect, run the following command:
- $^X install-module.pl Encode::Detect
+ cpanm --installdeps --with-feature=detect_charset -l local .
EOT
exit;
}
+ require Encode::Detect;
}
my %overrides;
diff --git a/contrib/sendbugmail.pl b/contrib/sendbugmail.pl
index 223d91f6c..c48a6f713 100755
--- a/contrib/sendbugmail.pl
+++ b/contrib/sendbugmail.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Util;
diff --git a/contrib/sendunsentbugmail.pl b/contrib/sendunsentbugmail.pl
index b9034aa8d..639762af9 100755
--- a/contrib/sendunsentbugmail.pl
+++ b/contrib/sendunsentbugmail.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Bugzilla;
use Bugzilla::Constants;
diff --git a/contrib/syncLDAP.pl b/contrib/syncLDAP.pl
index f618624ec..872dbc3d7 100755
--- a/contrib/syncLDAP.pl
+++ b/contrib/syncLDAP.pl
@@ -10,7 +10,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib);
+use lib qw(. lib local/lib/perl5);
use Net::LDAP;
use Bugzilla;