summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2020-07-01 21:31:46 -0700
committerDonald Webster2020-07-01 21:51:42 -0700
commit66c0de036bdbadc9f139c61a7a85f711ddb82cd7 (patch)
treeeea8c1bb27161619b4dca977607f55d02f0bbfba
parent668f6247308bbb07ac5549093dbe03570ed5fa61 (diff)
downloadaur-66c0de036bdbadc9f139c61a7a85f711ddb82cd7.tar.gz
Switch to python 3.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--tautulli.install10
-rw-r--r--tautulli.service2
4 files changed, 15 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72f96b37158..30a40b746fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tautulli
pkgdesc = A Python based monitoring and tracking tool for Plex Media Server.
pkgver = 2.5.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/Tautulli/Tautulli
install = tautulli.install
arch = any
@@ -21,7 +21,7 @@ pkgbase = tautulli
source = tautulli.sysusers
sha256sums = f11c3093ea21b0712c94e603388e4e4c987386c2db54b2dd8ecfab4f3009e574
sha256sums = a054b8abfabb44d35a97642050286751f77d22e22f3d00077960b370051aa4f4
- sha256sums = 3b7d165e39844dc5ffb126999e16d52b47acb2858d752ffe100a86e65648be38
+ sha256sums = 8363c0de54806e43e59cfde564ff57a49883895cfc0e725282889658a224624a
sha256sums = e6bb046d1022f0d2623f42c092f993c395a938a1f2a16c2986e76506bbfb54f8
pkgname = tautulli
diff --git a/PKGBUILD b/PKGBUILD
index 73f1c915127..0ec3d1edb71 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=tautulli
pkgver=2.5.2
-pkgrel=1
+pkgrel=2
pkgdesc="A Python based monitoring and tracking tool for Plex Media Server."
arch=('any')
url="https://github.com/Tautulli/Tautulli"
@@ -23,7 +23,7 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/Tautulli/Tautulli/archive/v
sha256sums=('f11c3093ea21b0712c94e603388e4e4c987386c2db54b2dd8ecfab4f3009e574'
'a054b8abfabb44d35a97642050286751f77d22e22f3d00077960b370051aa4f4'
- '3b7d165e39844dc5ffb126999e16d52b47acb2858d752ffe100a86e65648be38'
+ '8363c0de54806e43e59cfde564ff57a49883895cfc0e725282889658a224624a'
'e6bb046d1022f0d2623f42c092f993c395a938a1f2a16c2986e76506bbfb54f8')
package() {
diff --git a/tautulli.install b/tautulli.install
index ed96f944e9e..090cc8033b8 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
+}
diff --git a/tautulli.service b/tautulli.service
index 3d23f047983..f5031b1ed7f 100644
--- a/tautulli.service
+++ b/tautulli.service
@@ -6,7 +6,7 @@ After=plexmediaserver.service
User=tautulli
Group=tautulli
Type=simple
-ExecStart=/usr/bin/python2 /usr/lib/tautulli/PlexPy.py --nolaunch --config /var/lib/tautulli/config.ini --datadir /var/lib/tautulli
+ExecStart=/usr/bin/python /usr/lib/tautulli/PlexPy.py --nolaunch --config /var/lib/tautulli/config.ini --datadir /var/lib/tautulli
SyslogIdentifier=tautulli
[Install]