From ebf65640a3bf94b04c8a2f71b6064efe5dc6d4cf Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 3 Oct 2021 21:23:40 +0200 Subject: [PATCH] work around python issus on buster -> bullseye upgrade --- update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 3bf596a..fa8d040 100755 --- a/update.sh +++ b/update.sh @@ -163,10 +163,15 @@ hash -r echo bash "$IPATH/git/create-uuid.sh" +VENV=$IPATH/venv +if [[ -f /usr/local/share/adsbexchange/venv/bin/python3.7 ]] && command -v python3.9 &>/dev/null; +then + rm -rf "$VENV" +fi + MLAT_REPO="https://github.com/adsbxchange/mlat-client.git" MLAT_BRANCH="master" MLAT_VERSION="$(git ls-remote $MLAT_REPO $MLAT_BRANCH | cut -f1)" -VENV=$IPATH/venv if [[ $REINSTALL == yes ]] || ! grep -e "$MLAT_VERSION" -qs $IPATH/mlat_version || ! [[ -f "$VENV/bin/mlat-client" ]]; then echo echo "Installing mlat-client to virtual environment"