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 --- subcmds/init.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index b16f57c4..9a4f7118 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -90,12 +90,12 @@ to update the working directory files. dest='depth', help='create a shallow clone with given depth; see git clone') g.add_option('-g', '--groups', - dest='groups', default='default', + dest='groups', default='all,-notdefault', help='restrict manifest projects to ones with a specified group', metavar='GROUP') g.add_option('-p', '--platform', dest='platform', default='auto', - help='restrict manifest projects to ones with a specified' + help='restrict manifest projects to ones with a specified ' 'platform group [auto|all|none|linux|darwin|...]', metavar='PLATFORM') @@ -164,7 +164,7 @@ to update the working directory files. groups = [x for x in groups if x] groupstr = ','.join(groups) - if opt.platform == 'auto' and groupstr == 'default,platform-' + platform.system().lower(): + if opt.platform == 'auto' and groupstr == 'all,-notdefault,platform-' + platform.system().lower(): groupstr = None m.config.SetString('manifest.groups', groupstr) -- cgit v1.2.3-54-g00ecf