[SCM] Debian package checker branch, master, updated. 2.5.11-97-g0f53798
The following commit has been merged in the master branch:
commit 0f5379810c9289dafac8aeb01cba24ade32ae85e
Author: Niels Thykier <niels@thykier.net>
Date: Fri Jan 25 21:30:21 2013 +0100
L::Util: Use croak instead of die in fail()
... so it is possible to get a full trace by using -MCarp=verbose (in
PERL5OPT).
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/lib/Lintian/Util.pm b/lib/Lintian/Util.pm
index 49b4f28..a42f29b 100644
--- a/lib/Lintian/Util.pm
+++ b/lib/Lintian/Util.pm
@@ -970,16 +970,14 @@ sub fail {
if (@_) {
$str .= join " ", @_;
} else {
- my (undef, $filename, $line) = caller;
if ($!) {
$str .= "$!";
} else {
$str .= "No context.";
}
- $str .= " (called from $filename:$line)\n";
}
$! = 2; # set return code outside eval()
- die $str;
+ croak $str;
}
=item check_path (CMD)
--
Debian package checker
Reply to: