summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-12-22 17:03:15 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-28 09:25:14 +0000
commit498e4834a806918e41dfe5967f7b58629cf0208f (patch)
treec8b742ea45f9122ce3cd30bf9ea53809436ab9b1 /scripts
parentb272c5174fae042d6d1c6395dd2da107049b1464 (diff)
downloadpoky-498e4834a806918e41dfe5967f7b58629cf0208f.tar.gz
devtool: sync: tweak help / messages
Much of this was copy/pasted from the extract subcommand code; make it specific to sync. (From OE-Core rev: 08ca966dd48db881d8bfb7d7fa0aba49f1f7cffe) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index a9c4cf8d8d..fbc49a9777 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -346,7 +346,7 @@ def sync(args, config, basepath, workspace):
346 346
347 srctree = os.path.abspath(args.srctree) 347 srctree = os.path.abspath(args.srctree)
348 initial_rev = _extract_source(srctree, args.keep_temp, args.branch, True, rd) 348 initial_rev = _extract_source(srctree, args.keep_temp, args.branch, True, rd)
349 logger.info('Source tree extracted to %s' % srctree) 349 logger.info('Source tree %s synchronized' % srctree)
350 350
351 if initial_rev: 351 if initial_rev:
352 return 0 352 return 0
@@ -1326,11 +1326,11 @@ def register_commands(subparsers, context):
1326 parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') 1326 parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
1327 parser_extract.set_defaults(func=extract, no_workspace=True) 1327 parser_extract.set_defaults(func=extract, no_workspace=True)
1328 1328
1329 parser_sync = subparsers.add_parser('sync', help='Synchronize the source for an existing recipe', 1329 parser_sync = subparsers.add_parser('sync', help='Synchronize the source tree for an existing recipe',
1330 description='Synchronize the source for an existing recipe', 1330 description='Synchronize the previously extracted source tree for an existing recipe',
1331 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 1331 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
1332 parser_sync.add_argument('recipename', help='Name for recipe to sync the source for') 1332 parser_sync.add_argument('recipename', help='Name of recipe to sync the source for')
1333 parser_sync.add_argument('srctree', help='Path to where to sync the source tree') 1333 parser_sync.add_argument('srctree', help='Path to the source tree')
1334 parser_sync.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout') 1334 parser_sync.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout')
1335 parser_sync.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') 1335 parser_sync.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
1336 parser_sync.set_defaults(func=sync) 1336 parser_sync.set_defaults(func=sync)