[OE-core] [oe-core][PATCH] terminal.py: No --disable-factory for gnome-terminal >= 3.10

Burton, Ross ross.burton at intel.com
Mon Feb 23 13:34:57 UTC 2015


Hi again,

On 21 February 2015 at 10:44, Sven Ebenfeld <sven.ebenfeld at gmail.com> wrote:

> +        vernum = check_konsole_version("gnome-terminal")
> +        if vernum:
> +            major = int(vernum.split('.')[0])
> +            minor = int(vernum.split('.')[1])
>

And whilst you're editing this code, doing the split inside
check_terminal_version and returning a tuple would clean it up nicely:

def get_terminal_version():
    ...
    return ver.split()[-1].split('.')[:2]
(major, minor) = get_terminal_version()

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


More information about the Openembedded-core mailing list