filter results for 'active' devs only
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Jun 2013 16:07:16 +0000 (09:07 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Jun 2013 23:00:58 +0000 (16:00 -0700)
gkeyldap/cli.py

index f3c2ced5063a3dd7ec9f5ecf1002cc52d134b607..c702bd2757217a545b140da9dfb4f0f1e9c4185b 100644 (file)
@@ -148,6 +148,8 @@ class Main(object):
         filename = self.config['dev-seedfile'] + '.new'
         self.seeds = Seeds(filename)
         for dev in devs:
+            if devs[dev]['gentooStatus'][0] not in ['active']:
+                continue
             logger.debug("create_seedfile, dev = %s, %s" % (str(dev), str(devs[dev])))
             new_gkey = GKEY._make(self.build_gkeylist(devs[dev]))
             self.seeds.add(new_gkey)