[OE-core] [OE-Core][master][PATCH 1/2] reset --remove-work: Modify the remove-work print messages

Sai Hari Chandana Kalluri chandana.kalluri at xilinx.com
Tue Nov 26 19:43:25 UTC 2019


reset --remove-work: Modify the devtool reset remove-work print messages to
provide more details.

Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri at xilinx.com>
---
 scripts/lib/devtool/standard.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 1c0cd8a..10a29e7 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1931,8 +1931,8 @@ def _reset(recipes, no_clean, remove_work, config, basepath, workspace):
         if os.path.isdir(srctreebase):
             if os.listdir(srctreebase):
                     if remove_work:
-                        logger.info('-r argument used on %s, removing source tree.'
-                                    ' You will lose any unsaved work' %pn)
+                        logger.info('Removing source tree for %s as requested'
+                                '(-r option).' %pn)
                         shutil.rmtree(srctreebase)
                     else:
                         # We don't want to risk wiping out any work in progress
@@ -2282,7 +2282,9 @@ def register_commands(subparsers, context):
     parser_reset.add_argument('recipename', nargs='*', help='Recipe to reset')
     parser_reset.add_argument('--all', '-a', action="store_true", help='Reset all recipes (clear workspace)')
     parser_reset.add_argument('--no-clean', '-n', action="store_true", help='Don\'t clean the sysroot to remove recipe output')
-    parser_reset.add_argument('--remove-work', '-r', action="store_true", help='Clean the sources directory along with append')
+    parser_reset.add_argument('--remove-work', '-r', action="store_true",
+            help='Also delete the working sources tree (NOTE: will delete'
+            'unsaved work')
     parser_reset.set_defaults(func=reset)
 
     parser_finish = subparsers.add_parser('finish', help='Finish working on a recipe in your workspace',
-- 
2.7.4



More information about the Openembedded-core mailing list