forcebuild: allow build with default options
PATCH 1/1 forcebuild: allow build with default options
From: Anibal Limon <[email protected]>
A forced build fails if no options are passed through command line (using "-o OPTIONS").
This change allows build to use default options if none are passed at the command line.
--- bin/forcebuild.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
bin/forcebuild.py +5 -1
@@ -108,7 +108,11 @@ class YoctoAutobuilderAPI(object): % (builder, state)) return 1 - opts = eval(opts) # FIXME: transform string argument into dictionary, security? + if opts: + # FIXME: transform string argument into dictionary, security? + opts = eval(opts) + else: + opts = {} current_opts = self._get_options_by_builder(builder) for opt in opts: if not opt in current_opts:
Signature · 1 line
2.7.4
+ Joshua
Quoted 31 lines · Jose Lamego
From: Anibal Limon <[email protected]>
A forced build fails if no options are passed through command line (using "-o OPTIONS").
This change allows build to use default options if none are passed at the command line.
Signed-off-by Jose Lamego <[email protected]>--- bin/forcebuild.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)bin/forcebuild.py +5
-1@@ -108,7 +108,11 @@ class YoctoAutobuilderAPI(object): % (builder, state)) return 1 - opts = eval(opts) # FIXME: transform string argument into dictionary, security? + if opts: + # FIXME: transform string argument into dictionary, security? + opts = eval(opts) + else: + opts = {} current_opts = self._get_options_by_builder(builder) for opt in opts: if not opt in current_opts:
Quoted 7 lines · Jose Lamego
From: Anibal Limon <[email protected]>
A forced build fails if no options are passed through command line (using "-o OPTIONS").
This change allows build to use default options if none are passed at the command line.
Useful. Merged, thanks!
Joshua
Quoted 27 lines
Signed-off-by Jose Lamego <[email protected]>---
bin/forcebuild.py | 6 +++++-1 file changed, 5 insertions(+), 1 deletion(-)bin/forcebuild.py +0
-0@@ -108,7 +108,11 @@ class YoctoAutobuilderAPI(object): % (builder, state))return 1
- opts = eval(opts) # FIXME: transform string argument into dictionary, security?
+ if opts:
+ # FIXME: transform string argument into dictionary, security?
+ opts = eval(opts)
+ else:
+ opts = {}
current_opts =self._get_options_by_builder(builder)for opt in opts:
if not opt incurrent_opts:
--
2.7.4