All of lore.kernel.org
 help / color / mirror / Atom feed
* [yocto-autobuilder][PATCH] forcebuild: allow build with default options
@ 2017-06-01 17:32 Jose Lamego
  2017-06-01 18:48 ` Aníbal Limón
  2017-06-02 15:55 ` Joshua Lock
  0 siblings, 2 replies; 3+ messages in thread
From: Jose Lamego @ 2017-06-01 17:32 UTC (permalink / raw)
  To: yocto

From: Anibal Limon <anibal.limon@linux.intel.com>

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 <jose.a.lamego@linux.intel.com>
---
 bin/forcebuild.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/forcebuild.py b/bin/forcebuild.py
index 5fe61a0..e6770a4 100755
--- a/bin/forcebuild.py
+++ b/bin/forcebuild.py
@@ -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:
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [yocto-autobuilder][PATCH] forcebuild: allow build with default options
  2017-06-01 17:32 [yocto-autobuilder][PATCH] forcebuild: allow build with default options Jose Lamego
@ 2017-06-01 18:48 ` Aníbal Limón
  2017-06-02 15:55 ` Joshua Lock
  1 sibling, 0 replies; 3+ messages in thread
From: Aníbal Limón @ 2017-06-01 18:48 UTC (permalink / raw)
  To: Jose Lamego, yocto, Joshua G Lock

[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]

+ Joshua

On 06/01/2017 12:32 PM, Jose Lamego wrote:
> From: Anibal Limon <anibal.limon@linux.intel.com>
> 
> 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 <jose.a.lamego@linux.intel.com>
> ---
>  bin/forcebuild.py | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/bin/forcebuild.py b/bin/forcebuild.py
> index 5fe61a0..e6770a4 100755
> --- a/bin/forcebuild.py
> +++ b/bin/forcebuild.py
> @@ -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:
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto-autobuilder][PATCH] forcebuild: allow build with default options
  2017-06-01 17:32 [yocto-autobuilder][PATCH] forcebuild: allow build with default options Jose Lamego
  2017-06-01 18:48 ` Aníbal Limón
@ 2017-06-02 15:55 ` Joshua Lock
  1 sibling, 0 replies; 3+ messages in thread
From: Joshua Lock @ 2017-06-02 15:55 UTC (permalink / raw)
  To: Jose Lamego, yocto

On Thu, 2017-06-01 at 12:32 -0500, Jose Lamego wrote:
> From: Anibal Limon <anibal.limon@linux.intel.com>
> 
> 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

> Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
> ---
>  bin/forcebuild.py | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/bin/forcebuild.py b/bin/forcebuild.py
> index 5fe61a0..e6770a4 100755
> --- a/bin/forcebuild.py
> +++ b/bin/forcebuild.py
> @@ -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:
> -- 
> 2.7.4
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-02 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 17:32 [yocto-autobuilder][PATCH] forcebuild: allow build with default options Jose Lamego
2017-06-01 18:48 ` Aníbal Limón
2017-06-02 15:55 ` Joshua Lock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.