]> code.ossystems Code Review - openembedded-core.git/commit
devtool / recipetool: use common code for launching editor
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 19 Feb 2016 09:38:50 +0000 (22:38 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Feb 2016 09:31:59 +0000 (09:31 +0000)
commit184a256931e8cdc7bea97a905c4e67a435964de0
treeeb8efff98ebffc29b3fc3af9dde4497bc2df1a77
parentd2bc0cba5ca8a7220ffe1ef96acf856fe972ce7c
devtool / recipetool: use common code for launching editor

Looking at Chris Larson's code for starting the user's editor for
"recipetool newappend" it was slightly better than what I wrote for
"devtool edit-recipe" in that it checks VISUAL as well as EDITOR and
defaults to vi if neither are set, so break this out to its own function
and call it from both places. The broken out version passes shell=True
however in case it's a more complicated command rather than just a name
of an executable.

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