use warnings;
use Bugzilla::Constants;
-use Bugzilla::Install::Util qw(install_string bin_loc
+use Bugzilla::Install::Util qw(install_string bin_loc success
extension_requirement_packages);
-use File::Slurp;
use List::Util qw(max);
use Term::ANSIColor;
use parent qw(Exporter);
+use autodie;
+
our @EXPORT = qw(
REQUIRED_MODULES
OPTIONAL_MODULES
}
# 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;
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:",