[SCM] Debian package checker branch, lab-refactor, updated. 2.5.3-142-gb09f31c
The following commit has been merged in the lab-refactor branch:
commit b09f31c5d57e1dcb3d402d9f904b5fa82bab3d64
Author: Niels Thykier <niels@thykier.net>
Date: Wed Oct 26 09:02:21 2011 +0200
Created a lab_pkg method in L::Lab::Entry
This makes it easier to replace L::Processable::Package with
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 4f7e8ab..a9d9216 100644
--- a/lib/Lintian/Lab/Entry.pm
+++ b/lib/Lintian/Lab/Entry.pm
@@ -131,6 +131,18 @@ Returns the base directory of this package inside the lab.
Lintian::Lab::Entry->mk_ro_accessors (qw(base_dir));
+=item $lpkg->lab_pkg
+
+Return $lpkg. This method is here to simplify using a
+L::Lab::Entry as a replacement for L::Processable::Package.
+
+=cut
+
+sub lab_pkg {
+ my ($self) = @_;
+ return $self;
+}
+
=item $lpkg->info
Returns the L<Lintian::Collect|info> object associated with this entry.
--
Debian package checker
Reply to: