aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/json_overview_image_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/json_overview_image_info.py')
-rwxr-xr-xscripts/json_overview_image_info.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/json_overview_image_info.py b/scripts/json_overview_image_info.py
index 8f3525f890..c76a442840 100755
--- a/scripts/json_overview_image_info.py
+++ b/scripts/json_overview_image_info.py
@@ -2,7 +2,7 @@
from os import getenv, environ
from pathlib import Path
-from subprocess import run
+from subprocess import run, PIPE
from sys import argv
import json
@@ -42,10 +42,11 @@ if output:
"val.DEFAULT_PACKAGES",
"val.ARCH_PACKAGES",
],
- capture_output=True,
+ stdout=PIPE,
+ stderr=PIPE,
check=True,
env=environ.copy().update({"TOPDIR": Path().cwd()}),
- text=True,
+ universal_newlines=True,
).stdout.splitlines()
output["default_packages"] = default_packages.split()