From 41436754441f8e1d8a131a718beca7b559e9b7dc Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@hp.com>
Date: Tue, 23 Jun 2015 15:00:39 -0700
Subject: [PATCH] Add infra-puppet-core and release groups

Add these groups to all infra puppet-* repositories.

Change-Id: Ib125de1197e77f4cbba3a4b04faf096c08a73dc6
---
 tools/maintain-infra-groups.py | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/tools/maintain-infra-groups.py b/tools/maintain-infra-groups.py
index f3db6f99e2..1371f3e3fc 100644
--- a/tools/maintain-infra-groups.py
+++ b/tools/maintain-infra-groups.py
@@ -157,9 +157,19 @@ def main():
     core_groups = ['infra-core']
     for project in projects:
         shortname = project.split('/')[1]
-        for suffix in ['-core', '-release']:
-            group = shortname + suffix
-            configure_group(gerrit, group, include_groups=['infra-core'])
+
+        group = shortname + '-core'
+        include_groups = ['infra-core']
+        if shortname.startswith('puppet-'):
+            include_groups.append('infra-puppet-core')
+        configure_group(gerrit, group, include_groups=include_groups)
+
+        group = shortname + '-release'
+        include_groups = ['infra-core']
+        if shortname.startswith('puppet-'):
+            include_groups.append('infra-puppet-release')
+        configure_group(gerrit, group, include_groups=include_groups)
+
         group = shortname + '-core'
         core_groups.append(group)