From d0c81819958a984c87bae727b6c83a964083ab95 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 25 Apr 2017 16:44:46 -0700 Subject: [PATCH] Add banned stuff. Also have to restart :( --- banned.lst | 5 +++++ lib/TestCpanInc.pm | 3 +++ 2 files changed, 8 insertions(+) diff --git a/banned.lst b/banned.lst index e3f6489..e5098dc 100644 --- a/banned.lst +++ b/banned.lst @@ -142,3 +142,8 @@ OurNet::Template::Extract OurNet::Template::Generate OurNet::WebBuilder Slash::OurNet::Standalone +CPAN::Index +CPAN::Index::Author +CPAN::Index::Distrobution +CPAN::Index::Loader +CPAN::Index::Package diff --git a/lib/TestCpanInc.pm b/lib/TestCpanInc.pm index 70cc7b0..b6f416c 100644 --- a/lib/TestCpanInc.pm +++ b/lib/TestCpanInc.pm @@ -90,6 +90,9 @@ sub run_cpanm { sub test_module { my $module = shift; + + return "banned module" if (Module::_is_banned($module)); + remove_imc(); my ($ret, $noincout) = run_cpanm($module, 0);