public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wu, Hao A" <hao.a.wu@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch] BaseTools Build: Fix build break for clean target in Linux
Date: Fri, 30 Sep 2016 01:41:20 +0000	[thread overview]
Message-ID: <B80AF82E9BFB8E4FBD8C89DA810C6A092F2B48F4@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1475160458-16540-1-git-send-email-liming.gao@intel.com>

The patch is good to me.

Reviewed-by: Hao Wu <hao.a.wu@intel.com>

Best Regards,
Hao Wu


> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, September 29, 2016 10:48 PM
> To: edk2-devel@lists.01.org
> Cc: Wu, Hao A
> Subject: [Patch] BaseTools Build: Fix build break for clean target in Linux
> 
> From: Hao Wu <hao.a.wu@intel.com>
> 
> In Linux, Command needs to be String instead of list when Command run
> as shell with True.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> ---
>  BaseTools/Source/Python/build/build.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/BaseTools/Source/Python/build/build.py
> b/BaseTools/Source/Python/build/build.py
> index b003c67..f17b55c 100644
> --- a/BaseTools/Source/Python/build/build.py
> +++ b/BaseTools/Source/Python/build/build.py
> @@ -265,10 +265,10 @@ def LaunchCommand(Command, WorkingDir):
>      # It could be a string or sequence. We find that if command is a string in
> following Popen(),
>      # ubuntu may fail with an error message that the command is not found.
>      # So here we may need convert command from string to list instance.
> -    if not isinstance(Command, list):
> -        if platform.system() != 'Windows':
> +    if platform.system() != 'Windows':
> +        if not isinstance(Command, list):
>              Command = Command.split()
> -            Command = ' '.join(Command)
> +        Command = ' '.join(Command)
> 
>      Proc = None
>      EndOfProcedure = None
> --
> 2.8.0.windows.1



  reply	other threads:[~2016-09-30  1:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-29 14:47 [Patch] BaseTools Build: Fix build break for clean target in Linux Liming Gao
2016-09-30  1:41 ` Wu, Hao A [this message]
2016-09-30  4:40 ` Zhu, Yonghong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B80AF82E9BFB8E4FBD8C89DA810C6A092F2B48F4@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox