From bb1b5f5f863fca0e85764f5b35c117f5724d15c0 Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Mon, 13 Aug 2012 13:11:18 -0700 Subject: Allow projects to be specified as notdefault Instead of every group being in the group "default", every project is now in the group "all". A group that should not be downloaded by default may be added to the group "notdefault". This allows all group names to be positive (instead of removing groups directly in the manifest with -default) and offers a clear way of selecting every project (--groups all). Change-Id: I99cd70309adb1f8460db3bbc6eff46bdcd22256f --- manifest_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index 205e4af7..65b76379 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -130,7 +130,7 @@ class XmlManifest(object): groups = mp.config.GetString('manifest.groups') if not groups: - groups = 'default' + groups = 'all' groups = [x for x in re.split(r'[,\s]+', groups) if x] doc = xml.dom.minidom.Document() @@ -211,7 +211,7 @@ class XmlManifest(object): ce.setAttribute('dest', c.dest) e.appendChild(ce) - default_groups = ['default', 'name:%s' % p.name, 'path:%s' % p.relpath] + default_groups = ['all', '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