[OE-core] [PATCH 1/3] subprocess: remove strings and migrate to direct arrays

Burton, Ross ross.burton at intel.com
Fri Sep 30 16:10:46 UTC 2016


On 29 September 2016 at 22:34, Stephano Cetola <
stephano.cetola at linux.intel.com> wrote:

> -        cmd = "%s %s query --output %s" %  \
> -              (self.smart_cmd, self.smart_opt, available_manifest)
> +        cmd = [self.smart_cmd, self.smart_opt, 'query', '--output',
> available_manifest]
>

self.smart_opt is a string containing many options, so this needs to be
transformed to a list of options and embedded correctly.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160930/a12782d0/attachment-0002.html>


More information about the Openembedded-core mailing list