server: install volkswagencarnet from GitHub + apply auth patch

requirements.txt now references the upstream GitHub repo pinned to
commit c30dc37 (the last upstream commit before our fix), so the source
is portable and not machine-specific.

install.sh applies cariad-hybrid-auth-fix.patch to the installed
site-packages after pip runs, using `patch -N` so it is idempotent on
repeat installs.  The patch file is checked in to the repo so install.sh
can always find it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 23:03:44 +02:00
co-authored by Claude Sonnet 4.6
parent bc424310b5
commit 8ff9463e76
3 changed files with 295 additions and 1 deletions
+11
View File
@@ -56,6 +56,17 @@ fi
echo "==> Installing / updating dependencies"
"$VENV/bin/pip" install --quiet --upgrade pip
"$VENV/bin/pip" install --quiet --upgrade -r "$SCRIPT_DIR/requirements.txt"
echo "==> Applying cariad-hybrid-auth-fix.patch to volkswagencarnet"
SITE_PKG="$("$PYTHON" -c 'import sysconfig; print(sysconfig.get_path("purelib"))')"
PATCH_FILE="$REPO_DIR/cariad-hybrid-auth-fix.patch"
if patch -d "$SITE_PKG" -p1 -N --dry-run --silent < "$PATCH_FILE" 2>/dev/null; then
patch -d "$SITE_PKG" -p1 -N --silent < "$PATCH_FILE"
echo " Patch applied"
else
echo " Patch already applied (skipping)"
fi
echo " Python : $PYTHON"
echo ""