From 17f85eab24739c2982bf0613a13b155f712e045d Mon Sep 17 00:00:00 2001 From: Dmitry Fink Date: Mon, 6 Aug 2012 14:52:29 -0700 Subject: Omit all default groups when generating a manifest One of the recent changes introduced implicit path:xxx and name:xxx groups to every project, however they are not being stripped when generating a manifest using "repo manifest" command resulting in clutter Change-Id: Iec8610ba794b2fe4a6cdf0f59ca561595b66f9b5 --- manifest_xml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest_xml.py b/manifest_xml.py index ea6a7e52..26cc14f6 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -211,7 +211,8 @@ class XmlManifest(object): ce.setAttribute('dest', c.dest) e.appendChild(ce) - egroups = [g for g in p.groups if g != 'default'] + default_groups = ['default', 'name:%s' % p.name, 'path:%s' % p.relpath] + egroups = [g for g in p.groups if g not in default_groups] if egroups: e.setAttribute('groups', ','.join(egroups)) -- cgit v1.2.3-54-g00ecf