]> git.ipfire.org Git - pakfire.git/commitdiff
shell: Fix tailing logs
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 May 2017 12:18:27 +0000 (14:18 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 May 2017 12:18:27 +0000 (14:18 +0200)
Anything that is read from a file descriptor is now
of the bytes data type.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/shell.py

index fcdf7682920ecbd21e0eb8045cf9a32762fb7f78..2a4d8955e81f2e6d2d1031603b11b6f859f5ef90 100644 (file)
@@ -219,7 +219,7 @@ class ShellExecuteEnvironment(object):
                        # Process output.
                        for s in i_rdy:
                                # Read as much data as possible.
-                               input = s.read()
+                               input = s.read().decode()
 
                                if input == "":
                                        done = True