Upgrade Tor Browser to 14.0a6 (refs: tails#20448)
[tails.git] / config / chroot_local-hooks / 01-check-leftover-PySide-usage-in-OnionShare
blob061fd8e410b3038e3d9b25b667f9f429d84b2c3e
1 #!/bin/sh
3 set -eu
5 echo 'Checking leftover PySide usage in OnionShare'
7 if grep \
8 --extended-regexp \
9 --recursive \
10 --include='*.py' \
11 '^\s*(import|from)\s+PySide[26]' \
12 /usr/lib/python3/dist-packages/onionshare/; then
13 echo "OnionShare still contains instances of PySide usage. " \
14 "If you are building Tails based on Trixie, delete this check, " \
15 "which is now obsolete. Otherwise, update the patch that ports to QtPy " \
16 "in our custom backport to Bookworm: " \
17 "https://salsa.debian.org/pkg-privacy-team/onionshare/-/tree/tails/6.x" \
18 >&2
19 exit 1