summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Packages')
-rw-r--r--src/lib/Server/Plugins/Packages/PackagesSources.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages/PackagesSources.py b/src/lib/Server/Plugins/Packages/PackagesSources.py
index e03303d30..d399838ae 100644
--- a/src/lib/Server/Plugins/Packages/PackagesSources.py
+++ b/src/lib/Server/Plugins/Packages/PackagesSources.py
@@ -97,3 +97,6 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked,
def __str__(self):
return "PackagesSources: %s" % str(self.entries)
+
+ def __len__(self):
+ return len(self.entries)