[SCM] Debian package checker branch, master, updated. 2.5.4-106-gfcdc671
The following commit has been merged in the master branch:
commit fcdc6715863e889dff1cdf7e62c63068f1e85041
Author: Niels Thykier <niels@thykier.net>
Date: Tue Jan 24 16:35:08 2012 +0100
Fixed an uninitialized variable issue in L::Lab::Entry
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/lib/Lintian/Lab/Entry.pm b/lib/Lintian/Lab/Entry.pm
index c00b7c7..0a61af8 100644
--- a/lib/Lintian/Lab/Entry.pm
+++ b/lib/Lintian/Lab/Entry.pm
@@ -103,7 +103,9 @@ sub _new {
} else {
# This error should not happen unless someone (read: me) breaks
# Lintian::Lab::get_package
- croak "$pkg_name $pkg_type ($pkg_version) [$pkg_arch] does not exists"
+ my $arch = '';
+ $arch = " [$pkg_arch]" if $pkg_arch;
+ croak "$pkg_name $pkg_type ($pkg_version)$arch does not exists"
unless $self->exists;
my $link;
$link = 'deb' if $pkg_type eq 'binary' or $pkg_type eq 'udeb';
--
Debian package checker
Reply to: