]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: add: display a warning for deprecated -f/--fetch option
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 4 Oct 2016 09:31:15 +0000 (22:31 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Oct 2016 23:12:25 +0000 (00:12 +0100)
We want to remove the -f/--fetch option at some point (as you can now
specify a URL as a positional argument instead) so display a warning
that it's deprecated if it is used.

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 c8d7eb1b2b261421635d60737915867e7c3a14c5..02ed23574b795ab1452f08144e973f55c1c644a7 100644 (file)
@@ -74,7 +74,7 @@ def add(args, config, basepath, workspace):
         if args.fetchuri:
             raise DevtoolError('URI specified as positional argument as well as -f/--fetch')
         else:
-            # FIXME should show a warning that -f/--fetch is deprecated here
+            logger.warn('-f/--fetch option is deprecated - you can now simply specify the URL to fetch as a positional argument instead')
             args.fetchuri = args.fetch
 
     if args.recipename: