]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: add: move important "recipe created" message to the end
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 22 Sep 2015 16:21:34 +0000 (17:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Sep 2015 17:12:58 +0000 (18:12 +0100)
If we end up printing a message about the build directory being the same
as the source, we should print that first and then print the message
about the recipe file possibly needing to be edited to the end so that
it has slightly more impact.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py

index 4a05c1d2e03373754971a9b417f2a409d2f8a826..c25413242399e554ea0f1af82c1e50505ecd5aef 100644 (file)
@@ -96,7 +96,6 @@ def add(args, config, basepath, workspace):
         extracmdopts += ' -V %s' % args.version
     try:
         stdout, _ = exec_build_env_command(config.init_path, basepath, 'recipetool --color=%s create -o %s "%s" %s' % (color, recipefile, source, extracmdopts))
-        logger.info('Recipe %s has been automatically created; further editing may be required to make it fully functional' % recipefile)
     except bb.process.ExecutionError as e:
         raise DevtoolError('Command \'%s\' failed:\n%s' % (e.command, e.stdout))
 
@@ -128,6 +127,8 @@ def add(args, config, basepath, workspace):
 
     _add_md5(config, args.recipename, appendfile)
 
+    logger.info('Recipe %s has been automatically created; further editing may be required to make it fully functional' % recipefile)
+
     tinfoil.shutdown()
 
     return 0