[carton] 03/472: Fix messaging

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 3e1585a0b4defa509392f1e7f883f5217a2af340
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Fri Jun 24 02:19:47 2011 -0700

    Fix messaging
---
 lib/App/Carton.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/App/Carton.pm b/lib/App/Carton.pm
index e333944..6bb0711 100644
--- a/lib/App/Carton.pm
+++ b/lib/App/Carton.pm
@@ -90,7 +90,7 @@ sub cmd_install {
         $self->update_packages;
     } elsif (-e 'carton.json') {
         $self->print("Installing modules using carton.json\n");
-        $self->install_from_lock();
+        $self->install_from_spec();
     } else {
         $self->error("Can't locate build file or carton.json\n");
     }
@@ -129,7 +129,7 @@ sub install_modules {
     $self->run_cpanm(@args);
 }
 
-sub install_from_lock {
+sub install_from_spec {
     # build MIRROR index from carton.json and install with cpanm
 }
 
@@ -139,7 +139,7 @@ sub cmd_show {
     my($self, @args) = @_;
 
     my $data = $self->parse_json('carton.json')
-        or $self->error("carton.json: not found\n");
+        or $self->error("Can't find carton.json: Run `carton install` to rebuild the spec file.\n");
     for my $module (values %{$data->{modules} || {}}) {
         printf "$module->{dist}\n";
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git



More information about the Pkg-perl-cvs-commits mailing list