[carton] 89/472: Only display success messages when it actually succeeds

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:36 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 62763213dba76f09b3808128d1458caa49775270
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Thu Jun 30 00:03:26 2011 -0400

    Only display success messages when it actually succeeds
---
 lib/Carton/CLI.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/Carton/CLI.pm b/lib/Carton/CLI.pm
index 4c62800..0a43762 100644
--- a/lib/Carton/CLI.pm
+++ b/lib/Carton/CLI.pm
@@ -227,7 +227,11 @@ sub cmd_uninstall {
     }
 
     $self->carton->update_lock_file($self->lock_file);
-    $self->printf("Complete! Modules and its dependencies were uninstalled from %s\n", $self->config->get('path'), SUCCESS);
+
+    if (@missing) {
+        $self->printf("Complete! Modules and its dependencies were uninstalled from %s\n",
+                      $self->config->get('path'), SUCCESS);
+    }
 }
 
 sub cmd_config {

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