From f14ace1f388157c84534799e2d692ac79f32ee21 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 15 Aug 2023 17:40:10 +0200 Subject: [PATCH] Formatting --- jlmkr.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jlmkr.py b/jlmkr.py index e40040a..f310168 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -407,7 +407,7 @@ def run_lxc_download_script(jail_name=None, jail_path=None, jail_rootfs_path=Non fail("Abort! Downloaded script has unexpected contents.") stat_chmod(lxc_download_script, 0o700) - + check_exit_code = False if None not in [jail_name, jail_path, jail_rootfs_path, distro, release]: @@ -417,16 +417,17 @@ def run_lxc_download_script(jail_name=None, jail_path=None, jail_rootfs_path=Non else: cmd = [lxc_download_script, '--list', f'--arch={arch}'] - p1 = subprocess.Popen(cmd, stdout=subprocess.PIPE, env={"LXC_CACHE_PATH": lxc_cache}) + p1 = subprocess.Popen(cmd, stdout=subprocess.PIPE, env={ + "LXC_CACHE_PATH": lxc_cache}) for line in iter(p1.stdout.readline, b''): line = line.decode().strip() - # Filter out the known incompatible distros + # Filter out the known incompatible distros if not re.match(r"^(alpine|amazonlinux|busybox|devuan|funtoo|openwrt|plamo|voidlinux)\s", line): print(line) p1.wait() - + if check_exit_code and p1.returncode != 0: fail("Aborting...")