makedeb


tap 2.0.5-1


MPR in your pocket

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

Commit:


Hash: 352454d541812fb2b4fc796fea00578f3ec0982c

Message: Updated version to 2.0.3-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index de7c5b9..adc0cb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb-makepkg
 
 pkgbase = tap
 	pkgdesc = MPR in your pocket
-	pkgver = 2.0.2
+	pkgver = 2.0.3
 	pkgrel = 1
 	url = https://github.com/hwittenborn/tap
 	arch = any
@@ -15,7 +15,7 @@ pkgbase = tap
 	depends = less
 	optdepends = r!bash-completion
 	conflicts = node-tap
-	source = git+https://github.com/hwittenborn/tap/#tag=v2.0.2-1
+	source = git+https://github.com/hwittenborn/tap/#tag=v2.0.3-1
 	sha256sums = SKIP
 
 pkgname = tap
diff --git a/.install b/.install
deleted file mode 100644
index 59ee7e0..0000000
--- a/.install
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-pre_install() {
-	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 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' | grep -v '^True/True' | awk -F '/' '{print \$1}'"
-		echo
-	fi
-}
diff --git a/PKGBUILD b/PKGBUILD
index b47885a..9f72966 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
 pkgname=tap
-pkgver=2.0.2
+pkgver=2.0.3
 pkgrel=1
 pkgdesc="MPR in your pocket"
 arch=('any')
diff --git a/tap.postinst b/tap.postinst
new file mode 100644
index 0000000..e00784b
--- /dev/null
+++ b/tap.postinst
@@ -0,0 +1,15 @@
+#!/usr/bin/bash
+set -e
+needed_files=('/var/cache/tap/mpr-cache.json' '/var/cache/tap/pkglist')
+
+for i in "${needed_files[@]}"; do
+    dirname="$(dirname "${i}")"
+
+    if ! [[ -d "${dirname}" ]]; then
+        mkdir -p "${dirname}"
+    fi
+
+    if ! [[ -f "${i}" ]]; then
+        touch "${i}"
+    fi
+done