r35293 - /trunk/dh-make-perl/lib/Debian/Dependency.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Wed May 13 04:38:40 UTC 2009


Author: dmn
Date: Wed May 13 04:38:36 2009
New Revision: 35293

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=35293
Log:
Dependency::new: croak if pkg name is not given

Modified:
    trunk/dh-make-perl/lib/Debian/Dependency.pm

Modified: trunk/dh-make-perl/lib/Debian/Dependency.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/Debian/Dependency.pm?rev=35293&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/Debian/Dependency.pm (original)
+++ trunk/dh-make-perl/lib/Debian/Dependency.pm Wed May 13 04:38:36 2009
@@ -4,6 +4,7 @@
 use warnings;
 
 use AptPkg::Config;
+use Carp;
 
 =head1 NAME
 
@@ -105,7 +106,7 @@
 
     $self->rel($rel) if $rel;
 
-    die "pkg is mandatory" unless $pkg;
+    croak "pkg is mandatory" unless $pkg;
 
     $self->pkg($pkg);
 




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