# HG changeset patch # User Meredith Howard # Date 1584029142 18000 # Node ID cf73e0ff425893ad662d6844eafba97543b12b2a # Parent b8501cb649b6a96369e0ef0a10fcb9134dc51619 Try 'cpm' before 'cpanm' diff --git a/.lib/perl5/Autofetch.pm b/.lib/perl5/Autofetch.pm --- a/.lib/perl5/Autofetch.pm +++ b/.lib/perl5/Autofetch.pm @@ -6,6 +6,8 @@ use File::Spec::Functions qw(catfile rel sub fetch { my ($path, $module) = @_; + return if + system('cpm', 'install', -L => $path, $module) == 0; system 'cpanm', -nq, -l => $path, $module; }