Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't try to reload KiokuDB::Cmd after autoinstall

it's too finicky when upgrading
  • Loading branch information...
commit e09d20ed6b9feb6252e42d9c21acfbccfa16323c 1 parent a65b5c6
@nothingmuch authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 bin/kioku
View
9 bin/kioku
@@ -13,10 +13,7 @@ unless ( try_run() ) {
print "KiokuDB::Cmd is not installed (it's now shipped in a separate distribution).\n";
}
- if ( try_auto_install() ) {
- delete $INC{"KiokuDB/Cmd.pm"};
- try_run();
- }
+ try_auto_install();
}
print "\nPlease install an up to date KiokuDB::Cmd from CPAN\n";
@@ -40,7 +37,9 @@ sub try_auto_install {
print "\n";
if ( ExtUtils::MakeMaker::prompt("Module::AutoInstall is available. Should I use it to install KiokuDB::Cmd?", "N/y") =~ /^y/i ) {
my @installed = Module::AutoInstall->install( [], "KiokuDB::Cmd" => $KiokuDB::REQUIRED_CMD_VERSION );
- return @installed > 0;
+ print "\n\n";
+ print "Please retry running your command :)\n";
+ exit 1;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.