[oe-commits] [openembedded-core] 06/17: devtool: add: display a warning for deprecated -f/--fetch option
git at git.openembedded.org
git at git.openembedded.org
Tue Oct 4 23:19:13 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 43476d77a91d50454ca26e016a3413b24e9f3aec
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Oct 4 22:31:15 2016 +1300
devtool: add: display a warning for deprecated -f/--fetch option
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index c8d7eb1..02ed235 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -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:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list