diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-10-15 00:10:59 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-15 00:10:59 +0200 |
commit | d1e7da3b24637d6bb70f24fd16ada00104a24123 (patch) | |
tree | 1ddb16f1ab24e08108cd402a88bb4580e665305a /checksetup.pl | |
parent | d943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1 (diff) | |
download | bugzilla-d1e7da3b24637d6bb70f24fd16ada00104a24123.tar.gz bugzilla-d1e7da3b24637d6bb70f24fd16ada00104a24123.tar.xz |
Bug 1308949 - Keep MYMETA.json up-to-date when checksetup is run
r=dkl
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl index cf175a288..7ce9673ce 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -91,7 +91,17 @@ if (defined $switch{cpanm}) { exit 1 if $rv != 0; } +$ENV{PERL_MM_USE_DEFAULT} = 1; +$ENV{BZ_SILENT_MAKEFILE} = 1; +system($^X, "Makefile.PL"); + my $meta = load_cpan_meta(); +if (keys %{$meta->{optional_features}} < 1) { + warn "Your version of ExtUtils::MakeMaker is probably too old\n"; + warn "Falling back to static (and wrong) META.json\n"; + unlink('MYMETA.json'); + $meta = load_cpan_meta(); +} my $requirements = check_cpan_requirements($meta, \@BUGZILLA_INC, !$silent); exit 1 unless $requirements->{ok}; |