[carton] 07/472: cleanup

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 28d11da094390bdd028530e5e1ae40d2bacc7498
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Fri Jun 24 13:20:16 2011 -0700

    cleanup
---
 lib/App/Carton.pm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/App/Carton.pm b/lib/App/Carton.pm
index 906186e..c127aa3 100644
--- a/lib/App/Carton.pm
+++ b/lib/App/Carton.pm
@@ -62,6 +62,12 @@ sub print {
     print $msg;
 }
 
+sub check {
+    my($self, $msg) = @_;
+    $self->print("✓ ", "SUCCESS");
+    $self->print($msg . "\n");
+}
+
 sub error {
     my($self, $msg) = @_;
     $self->print($msg, "ERROR");
@@ -162,7 +168,7 @@ sub check_cpanm_version {
     unless ($version && $version >= 1.5) {
         $self->error("carton needs cpanm version >= 1.5. You have " . ($version || "(not installed)") . "\n");
     }
-    $self->print("✔ You have cpanm $version\n", "SUCCESS");
+    $self->check("You have cpanm $version");
 }
 
 sub cmd_update {

-- 
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