Commit 3194cc75 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_web_deploy: support Ubuntu24.04

without the option --ignore-installed (even with
PIP_BREAK_SYSTEM_PACKAGES=1), pip3 upgrade on Ubuntu 24.04 would report:

Requirement already satisfied: pip in /usr/lib/python3/dist-packages (24.0)
Collecting pip
  Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.0
ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
parent 996d8a38
...@@ -67,7 +67,7 @@ elif ! is_ubuntu || [[ $DISTRO = wheezy || $DISTRO == jessie || $DISTRO == stret ...@@ -67,7 +67,7 @@ elif ! is_ubuntu || [[ $DISTRO = wheezy || $DISTRO == jessie || $DISTRO == stret
else else
# Ansible is using python3 now # Ansible is using python3 now
is_package_installed python3-pip || install_package python3-pip is_package_installed python3-pip || install_package python3-pip
pip3 install --upgrade pip pip3 install --upgrade --ignore-installed pip
fi fi
if is_ubuntu && [[ $DISTRO == focal || $DISTRO == buster ]]; then if is_ubuntu && [[ $DISTRO == focal || $DISTRO == buster ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment