makedeb


tap 2.0.5-1


MPR in your pocket

Click here to go back to the commit logs for tap.

Commit:


Hash: 9a42db1cedb7cdcbc7c3a45fb2060647df518ef2

Message: Updated version to 0.14.0-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 173c878..17d163e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = tap
 	pkgdesc = MPR in your pocket
-	pkgver = 0.13.0
+	pkgver = 0.14.0
 	pkgrel = 1
 	url = https://github.com/hwittenborn/tap
 	install = .install
@@ -9,7 +9,7 @@ pkgbase = tap
 	depends = python3
 	depends = python3-requests
 	conflicts = node-tap
-	source = https://github.com/hwittenborn/tap/archive/refs/tags/v0.13.0.tar.gz
+	source = https://github.com/hwittenborn/tap/archive/refs/tags/v0.14.0.tar.gz
 	sha256sums = SKIP
 
 pkgname = tap
diff --git a/.install b/.install
index 890c515..be4f533 100644
--- a/.install
+++ b/.install
@@ -2,13 +2,15 @@
 pre_install() {
 	if [[ "${1}" == "upgrade" ]]; then
 
-		if ! tap --version &> /dev/null; then
+		bad_packages="$(dpkg-query --show --showformat '${Package}/${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True')"
+
+		if [[ "${bad_packages}" != "" ]]; then
 			echo
-			printf "\033[1;31m[WARNING]\033[0;00m You appear to be upgrading from a version of Tap containing known issues with updating certain packages from the MPR.\n"
+			printf "\033[1;31m[WARNING]\033[0;00m Your system appears to contain MPR packages that Tap is unable to upgrade due to known bugs in previous versions of Tap.\n"
 			echo "You'll need to reinstall all affected packages with 'tap install' to fix any issues with upgrading."
 			echo
 			echo "To find the affected packages, you can use the following command:"
-			echo "  dpkg-query --show --showformat '\${Package}/\${MPR-Package}\n' | grep '^[^/]*/True' | awk -F '/' '{print \$1}'"
+			echo "  dpkg-query --show --showformat '\${Package}/\${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True' | awk -F '/' '{print \$1}'"
 			echo
 		fi
 
diff --git a/PKGBUILD b/PKGBUILD
index 3519476..d061f47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
 pkgname=tap
-pkgver=0.13.0
+pkgver=0.14.0
 pkgrel=1
 pkgdesc="MPR in your pocket"
 arch=('any')