From 984611ed984a28047af71438681c4368af4e76c8 Mon Sep 17 00:00:00 2001 From: Samuel <40303843+sasdallas@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:49:35 -0600 Subject: [PATCH] Fix Python package errors (#33) --- i686-elf-tools.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i686-elf-tools.sh b/i686-elf-tools.sh index 8dfadd4..16397f9 100755 --- a/i686-elf-tools.sh +++ b/i686-elf-tools.sh @@ -138,8 +138,8 @@ function installPackages { lzip) echoColor "Installing packages" - # Fix correct python packages on modern Ubuntu versions - if [[ $(lsb_release -a) =~ .*"Ubuntu".*$ ]]; then + # Fix correct python packages on modern Ubuntu and Ubuntu-based distros + if [[ $(lsb_release -a) =~ .*"Ubuntu".*$ || $(cat /etc/os-release) =~ .*(U|u)buntu.*$ || $(apt-cache search --names-only ^python$ | wc -m) -gt 0 ]]; then pkgList+=(python3 python-is-python3) else pkgList+=(python)