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

[SCM] Debian package checker branch, infra-513663, updated. 2.5.0-rc1-68-gb42889b



The following commit has been merged in the infra-513663 branch:
commit b42889ba3a34fd482766178cdeacee8084e4e6e6
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Mar 29 18:21:39 2011 +0200

    Added method to L::PPool to allow to see if the pool is empty

diff --git a/lib/Lintian/ProcessablePool.pm b/lib/Lintian/ProcessablePool.pm
index cd833de..cb88ffa 100644
--- a/lib/Lintian/ProcessablePool.pm
+++ b/lib/Lintian/ProcessablePool.pm
@@ -158,6 +158,17 @@ sub get_groups{
     return ();
 }
 
+=item $pool->empty()
+
+Returns true if the pool is empty.
+
+=cut
+
+sub empty{
+    my ($self) = @_;
+    return scalar keys %{ $self->{groups} } < 1;
+}
+
 #### Internal subs ####
 
 sub _init {

-- 
Debian package checker


Reply to: