diff options
author | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2015-08-07 12:59:24 -0700 |
---|---|---|
committer | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2015-08-07 12:59:24 -0700 |
commit | 8e70d136a279bbf3534e0be92c2b0adde27eae0c (patch) | |
tree | 711d9676a78c13559f4f5b39db3f535a603252b8 | |
parent | 1c484f0f1a664b1878aabd3e4528e1b521317536 (diff) | |
download | carton-8e70d136a279bbf3534e0be92c2b0adde27eae0c.tar.gz |
nop when there's nothing to update
-rw-r--r-- | lib/Carton/CLI.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Carton/CLI.pm b/lib/Carton/CLI.pm index b990ad2..ffb86b1 100644 --- a/lib/Carton/CLI.pm +++ b/lib/Carton/CLI.pm @@ -346,6 +346,8 @@ sub cmd_update { push @modules, "$module~" . $env->cpanfile->requirements_for_module($module); } + return unless @modules; + my $builder = Carton::Builder->new( mirror => $self->mirror, cpanfile => $env->cpanfile, |