summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Install/Requirements.pm12
-rw-r--r--template/en/default/setup/strings.txt.pl1
2 files changed, 9 insertions, 4 deletions
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index fe66b581b..e5a76bc83 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -27,9 +27,8 @@ use strict;
use version;
use Bugzilla::Constants;
-use Bugzilla::Install::Util qw(vers_cmp install_string bin_loc
- extension_requirement_packages);
-use File::Slurp;
+use Bugzilla::Install::Util qw(vers_cmp install_string bin_loc
+ success extension_requirement_packages);
use List::Util qw(max);
use Safe;
use Term::ANSIColor;
@@ -42,6 +41,7 @@ BEGIN {
}
use base qw(Exporter);
+use autodie;
our @EXPORT = qw(
REQUIRED_MODULES
OPTIONAL_MODULES
@@ -831,7 +831,11 @@ sub export_cpanfile {
}
# Write out the cpanfile to the document root
- write_file(bz_locations()->{'libpath'} . '/cpanfile', \$cpanfile);
+ my $file = bz_locations()->{'libpath'} . '/cpanfile';
+ open(my $fh, '>', $file);
+ print $fh $cpanfile;
+ close $fh;
+ success(install_string('cpanfile_created', { file => $file }));
}
1;
diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl
index 103a2a3f5..257e30f9e 100644
--- a/template/en/default/setup/strings.txt.pl
+++ b/template/en/default/setup/strings.txt.pl
@@ -66,6 +66,7 @@ EOT
Re-run checksetup.pl in interactive mode (without an 'answers' file)
to continue.
END
+ cpanfile_created => "##file## created",
cpan_bugzilla_home =>
"WARNING: Using the Bugzilla directory as the CPAN home.",
db_enum_setup => "Setting up choices for standard drop-down fields:",