]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
ci: fix broken cloudsmith python
authorwywywywy <wywywywy@gmail.com>
Mon, 22 Jan 2024 21:55:41 +0000 (21:55 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Tue, 23 Jan 2024 00:48:55 +0000 (01:48 +0100)
support/cloudsmith.sh

index d759e098d195aa450547f93500b3354ca464afa0..37e1d27d179cd9486e1bacea24d0b7bd8de0f132 100755 (executable)
@@ -56,8 +56,8 @@ apt install --force-yes -y python3.7 || true
 
 # Function to initialize pip using ensurepip and upgrade if necessary
 initialize_pip() {
-    # Use ensurepip to bootstrap pip
-    python3 -m ensurepip
+    # Use ensurepip to bootstrap pip if available
+    python3 -m ensurepip || true
 
     PYTHON_VERSION=$(python3 -c 'import platform; print(platform.python_version())')
     MAJOR_VERSION=$(echo $PYTHON_VERSION | cut -d. -f1)