summarylogtreecommitdiffstats
path: root/tautulli.install
diff options
context:
space:
mode:
authorDonald Webster2020-07-01 21:31:46 -0700
committerDonald Webster2020-07-01 21:51:42 -0700
commit66c0de036bdbadc9f139c61a7a85f711ddb82cd7 (patch)
treeeea8c1bb27161619b4dca977607f55d02f0bbfba /tautulli.install
parent668f6247308bbb07ac5549093dbe03570ed5fa61 (diff)
downloadaur-66c0de036bdbadc9f139c61a7a85f711ddb82cd7.tar.gz
Switch to python 3.
Diffstat (limited to 'tautulli.install')
-rw-r--r--tautulli.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/tautulli.install b/tautulli.install
index ed96f944e9ef..090cc8033b87 100644
--- a/tautulli.install
+++ b/tautulli.install
@@ -6,3 +6,13 @@ post_install() {
echo " sudo chown -R tautulli: /var/lib/tautulli"
fi
}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ # Version 2.5.2 switched to python 3, but the .pyc files need to be cleaned.
+ if (( $(vercmp "2.5.2" "$2") >= 0 )); then
+ echo "Removing .pyc files in /usr/lib/tautulli."
+ find /usr/lib/tautulli -type f -iname '*.pyc' -delete
+ fi
+}