diff options
author | Donald Webster | 2020-07-01 21:31:46 -0700 |
---|---|---|
committer | Donald Webster | 2020-07-01 21:51:42 -0700 |
commit | 66c0de036bdbadc9f139c61a7a85f711ddb82cd7 (patch) | |
tree | eea8c1bb27161619b4dca977607f55d02f0bbfba /tautulli.install | |
parent | 668f6247308bbb07ac5549093dbe03570ed5fa61 (diff) | |
download | aur-66c0de036bdbadc9f139c61a7a85f711ddb82cd7.tar.gz |
Switch to python 3.
Diffstat (limited to 'tautulli.install')
-rw-r--r-- | tautulli.install | 10 |
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 +} |