Bug 1126476: Handle filtering out projects with "," separators r=pmoore
authorChris AtLee <catlee@mozilla.com>
Mon, 02 Feb 2015 13:46:14 -0500 (2015-02-02)
changeset 3620 4caccbbb7daaa62d0561de6bb1e5eacb16cebdc4
parent 3619 4b6bc0a8814e2dcfab2771c986232b04f06ba4f9
child 3621 4d0acf691616324e95ba9527a6efa5feadbc8761
child 3622 487aaf3b0ea6c18db228a3750bcc79ef3f3499d1
push id2830
push usercatlee@mozilla.com
push dateMon, 02 Feb 2015 18:46:37 +0000 (2015-02-02)
reviewerspmoore
bugs1126476
Bug 1126476: Handle filtering out projects with "," separators r=pmoore
mozharness/mozilla/repo_manifest.py
--- a/mozharness/mozilla/repo_manifest.py
+++ b/mozharness/mozilla/repo_manifest.py
@@ -174,17 +174,17 @@ def get_project_revision(manifest, proje
 
 
 def remove_group(manifest, group):
     """
     Removes all projects with groups=`group`
     """
     retval = []
     for node in manifest.getElementsByTagName('project'):
-        if node.getAttribute('groups') == group:
+        if group in node.getAttribute('groups').split(","):
             node.parentNode.removeChild(node)
             retval.append(node)
     return retval
 
 
 def map_remote(r, mappings):
     """
     Helper function for mapping git remotes