From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- external/poky/scripts/oepydevshell-internal.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'external/poky/scripts/oepydevshell-internal.py') diff --git a/external/poky/scripts/oepydevshell-internal.py b/external/poky/scripts/oepydevshell-internal.py index 04621ae8..96c078ef 100755 --- a/external/poky/scripts/oepydevshell-internal.py +++ b/external/poky/scripts/oepydevshell-internal.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-only +# import os import sys @@ -63,7 +66,9 @@ try: (ready, _, _) = select.select([pty, sys.stdin], writers , [], 0) try: if pty in ready: - i = i + pty.read().decode('utf-8') + readdata = pty.read() + if readdata: + i = i + readdata.decode('utf-8') if i: # Write a page at a time to avoid overflowing output # d.keys() is a good way to do that -- cgit 1.2.3-korg