Test build
authorDevon Kearns <dookie@kali.org>
Wed, 4 Dec 2013 21:06:13 +0000 (14:06 -0700)
committerDevon Kearns <dookie@kali.org>
Wed, 4 Dec 2013 21:06:13 +0000 (14:06 -0700)
debian/changelog
debian/preinst [new file with mode: 0755]

index 259a246..e493266 100644 (file)
@@ -1,3 +1,9 @@
+binwalk (1.2.2-1-1kali0) kali; urgency=low
+
+  * Imported new upstream release
+
+ -- Devon Kearns <dookie@kali.org>  Wed, 04 Dec 2013 13:54:27 -0700
+
 binwalk (1.2.1-1kali4) kali; urgency=low
 
   * Build-depends and depends on unrar-free to avoid a dependency on a
diff --git a/debian/preinst b/debian/preinst
new file mode 100755 (executable)
index 0000000..565a570
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    upgrade)
+       if dpkg --compare-versions "$2" le-nl "1.2.1-1kali4"; then
+           # get completely rid of the old directories
+           rm -rf /usr/lib/pymodules/python*/binwalk/
+       fi
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0