Skip to content

Commit

Permalink
Fix Python package errors (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasdallas authored Nov 14, 2024
1 parent f5e1f4b commit 984611e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i686-elf-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 984611e

Please sign in to comment.