Browse Source

archlinux: pin PKGBUILD to python3.X major version as new python version will break the API

(cherry picked from commit 1fae41332219ba22d3e0bc2bfc73abea10f5bb97)
Olivier MEDOC 3 years ago
parent
commit
17d828dcea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      archlinux/PKGBUILD

+ 2 - 2
archlinux/PKGBUILD

@@ -1,5 +1,3 @@
-#!/bin/bash
-# shellcheck disable=SC2034
 pkgname=(qubes-vm-core qubes-vm-networking qubes-vm-keyring qubes-vm-passwordless-root)
 pkgver=$(cat version)
 pkgrel=15
@@ -62,6 +60,8 @@ package_qubes-vm-core() {
              zenity qubes-libvchan qubes-db-vm haveged python-gobject
              python-dbus xdg-utils notification-daemon gawk sed procps-ng librsvg
              socat pacman-contrib
+             # Block updating if there is a major python update as the python API will be in the wrong PYTHONPATH
+             'python<3.10'
              )
     optdepends=(gnome-keyring gnome-settings-daemon python-nautilus gpk-update-viewer qubes-vm-networking qubes-vm-keyring)
     install=PKGBUILD.install