[carton] 99/472: use Exception::Class

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:37 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 925a1a9f89a2407ccdcde29ac088f95ccbda5388
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Fri Jul 1 17:26:41 2011 -0700

    use Exception::Class
---
 Makefile.PL         | 1 +
 lib/Carton/Error.pm | 8 +++-----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 49e5573..69eb6f2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -17,6 +17,7 @@ requires 'Config::GitLike', 1.05;
 requires 'Mouse', 0.93;
 requires 'Text::ParseWords', 3.10;
 requires 'local::lib', 1.008;
+requires 'Exception::Class', 1.32;
 
 install_script 'bin/carton';
 
diff --git a/lib/Carton/Error.pm b/lib/Carton/Error.pm
index 23d9a0f..d5afc11 100644
--- a/lib/Carton/Error.pm
+++ b/lib/Carton/Error.pm
@@ -1,9 +1,7 @@
 package Carton::Error;
 use strict;
-use Mouse;
-
-package Carton::Error::CommandExit;
-use Mouse;
-extends 'Carton::Error';
+use Exception::Class (
+    'Carton::Error::CommandExit',
+);
 
 1;

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