Adding preinst
authorMati Aharoni (Kali Linux Developer) <muts@kali.org>
Tue, 19 Nov 2013 16:49:55 +0000 (11:49 -0500)
committerMati Aharoni (Kali Linux Developer) <muts@kali.org>
Tue, 19 Nov 2013 16:49:55 +0000 (11:49 -0500)
debian/changelog
debian/websploit.preinst [new file with mode: 0644]

index b37981a..3bf0a69 100644 (file)
@@ -1,3 +1,9 @@
+websploit (2.0.4-1kali2) kali; urgency=low
+
+  * Removed postrm
+
+ -- Mati Aharoni <muts@kali.org>  Tue, 19 Nov 2013 11:40:13 -0500
+
 websploit (2.0.4-1kali1) kali; urgency=low
 
   * Fixed DHCP paths as per bug #704
diff --git a/debian/websploit.preinst b/debian/websploit.preinst
new file mode 100644 (file)
index 0000000..e2268e1
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+if [ "$1" = "upgrade" ] && dpkg --compare-versions $2 lt 2.0.4-1kali2; then
+       rm -f $(dpkg-query --control-path websploit postrm)
+fi