Fix travis

This commit is contained in:
VirtuBox
2020-10-26 16:38:23 +01:00
parent dbb58192ec
commit 81218a07a4

View File

@@ -479,6 +479,10 @@ wo_install() {
wo_travis_install() {
local python_ver
python_ver=$(python3 -c "import sys; print(sys.version_info[1])")
local wo_distro_codename
wo_distro_codename=$(lsb_release -sc)
local wo_linux_distro
wo_linux_distro=$(lsb_release -is)
if [ -d ./dist ]; then
rm -rf dist
fi
@@ -492,7 +496,7 @@ wo_travis_install() {
source /opt/wo/bin/activate
python3 -m pip install -U pip setuptools wheel
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
if [ "$wo_distro_codename" = "strech" ]; then
if [ "$wo_distro_codename" = "stretch" ]; then
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.4.y#egg=python-apt
else
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.4.y#egg=python-apt