Add errors count to the output.
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 15 Nov 2013 05:25:35 +0000 (21:25 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Fri, 15 Nov 2013 09:13:57 +0000 (01:13 -0800)
gkeyldap/actions.py

index be02dfd9d5203279d873020f7c8ba8c4413b1e48..13e67f71cac2f00e6069807fe2e92262b8e710ea 100644 (file)
@@ -124,6 +124,7 @@ class Actions(object):
         filename = self.config['dev-seedfile'] + '.new'
         self.seeds = Seeds(filename)
         count = 0
+        error_count = 0
         for dev in sorted(devs):
             if devs[dev]['gentooStatus'][0] not in ['active']:
                 continue
@@ -134,10 +135,14 @@ class Actions(object):
                 new_gkey = GKEY._make(keyinfo)
                 self.seeds.add(new_gkey)
                 count += 1
+            else:
+                error_count += 1
         self.output("Total number of seeds created:", count)
         self.output("Seeds created...saving file: %s" % filename)
+        self.output("Total number of Dev's with gpg errors:", error_count)
         self.logger.info("Total number of seeds created: %d" % count)
         self.logger.info("Seeds created...saving file: %s" % filename)
+        self.logger.info("Total number of Dev's with gpg errors: %d" % error_count)
         return self.seeds.save()