From 2c33712dc066463ab9741a009e56d9a5c2ffedf6 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Tue, 23 Feb 2016 16:23:20 -0500 Subject: Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies r=dkl,a=dylan --- contrib/bzdbcopy.pl | 2 +- contrib/console.pl | 2 +- contrib/convert-workflow.pl | 2 +- contrib/extension-convert.pl | 2 +- contrib/fixperms.pl | 2 +- contrib/merge-users.pl | 2 +- contrib/recode.pl | 7 ++++--- contrib/sendbugmail.pl | 2 +- contrib/sendunsentbugmail.pl | 2 +- contrib/syncLDAP.pl | 2 +- 10 files changed, 13 insertions(+), 12 deletions(-) (limited to 'contrib') 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 <