summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authors7hoang2022-07-17 10:50:16 -0400
committers7hoang2022-07-17 11:05:11 -0400
commit293f3645154e2a554c3567e62708d2314fedd371 (patch)
treec16e610bb8fc523eebf4a5f8b4d01988ae253cfa
parentc1c6c1ffe4a40b38366540af21138ffccb51ce43 (diff)
downloadaur-293f3645154e2a554c3567e62708d2314fedd371.tar.gz
Add Modification To Requirements.Txt For Protobuf
Should be an upstream change but will have to see what happens...
-rw-r--r--anki-sync-server.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/anki-sync-server.install b/anki-sync-server.install
index 1177e7008929..9aa8873e3f4a 100644
--- a/anki-sync-server.install
+++ b/anki-sync-server.install
@@ -4,6 +4,9 @@ post_install() {
chown -R anki-sync-server /opt/anki-sync-server
chgrp -R anki-sync-server /opt/anki-sync-server
+ # fix protobuf needs older version (pending upstream change)
+ sudo -u anki-sync-server sed -i "s/\\(protobuf\\)==.*$/\\1<=3.20.1/" /opt/anki-sync-server/requirements.txt
+
# install prerequisites as stated on the website
echo "installing python packages as anki-sync-server user..."
sudo -u anki-sync-server pip install -r /opt/anki-sync-server/requirements.txt --user --no-warn-script-location