From 777365adf814db9e4f804b98ade005e64b2f5dce Mon Sep 17 00:00:00 2001 From: clore Date: Fri, 3 Jan 2025 16:40:47 +0000 Subject: [PATCH] ensure_packages_installed fix --- lib/ensure_packages_installed.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/ensure_packages_installed.py b/lib/ensure_packages_installed.py index 9abb651..16ea2c1 100644 --- a/lib/ensure_packages_installed.py +++ b/lib/ensure_packages_installed.py @@ -36,9 +36,7 @@ async def ensure_packages_installed( return True update_cmd = ( - "apt-get update" - "-y" - "--no-install-recommends" + "apt-get update -y --no-install-recommends" ) return_code, stdout, stderr = await utils.async_run_command( update_cmd, @@ -55,12 +53,9 @@ async def ensure_packages_installed( return False install_cmd = ( - "apt-get install" - "-y" - "--no-install-recommends" - "--assume-yes" - "-o Dpkg::Options::='--force-confdef'" # Default to existing config - "-o Dpkg::Options::='--force-confold'" # Keep existing config + "apt-get install -y --no-install-recommends --assume-yes "+ + "-o Dpkg::Options::='--force-confdef' "+ # Default to existing config + "-o Dpkg::Options::='--force-confold' "+ # Keep existing config f"{' '.join(packages_to_install)}" )