[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, lab-refactor, updated. 2.5.3-186-gd1570a8



The following commit has been merged in the lab-refactor branch:
commit f5c6d96d406a9bc7a114eef0ea96b82b7e49979b
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Nov 2 10:03:30 2011 +0100

    L::L::Manifest: Manually write getters for type and dirty
    
    The getters seems to always return "undef" despite $self->{$field} is
    not "undef".
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Lab/Manifest.pm b/lib/Lintian/Lab/Manifest.pm
index a77706d..4ed16e7 100644
--- a/lib/Lintian/Lab/Manifest.pm
+++ b/lib/Lintian/Lab/Manifest.pm
@@ -170,8 +170,20 @@ Returns the type of packages that this manifest has information about.
 
 =cut
 
+# For some reason these getters seem to just return "undef", so they
+# have been added manually below.  (not sure if this is a usage error
+# or a bug in Class::Accessor)
+#Lintian::Lab::Manifest->mk_ro_accessors (qw(dirty type));
 
-Lintian::Lab::Manifest->mk_ro_accessors (qw(dirty type));
+sub dirty {
+    my ($self) = @_;
+    return $self->{'dirty'};
+}
+
+sub type {
+    my ($self) = @_;
+    return $self->{'type'};
+}
 
 =item $manifest->read_list ($file)
 

-- 
Debian package checker


Reply to: