[Debian-in-commits] [SCM] fonts-nakula.git branch, master, updated. upstream/1.0-6-g6ccbc5a

Vasudev Kamath kamathvasudev at gmail.com
Sat Jul 14 19:23:10 UTC 2012


The following commit has been merged in the master branch:
commit 6ccbc5a8bce975d72a0a425fb6982aa1b759c125
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date:   Sat Jul 14 22:44:53 2012 +0530

    Fixed install directory name : now introduced preinst file

diff --git a/debian/changelog b/debian/changelog
index 61733cc..e943d66 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,11 @@ fonts-nakula (1.0-3) UNRELEASED; urgency=low
   [Vasudev Kamath]
   * debian/install:
     + Install directory name changed from fonts-nakula to Nakula
+  * debian/preinst:
+    + Introduced to remove old fonts-nakula folder so that no cruft
+      is left on user system after the upgrade
 
- -- Vasudev Kamath <kamathvasudev at gmail.com>  Sat, 14 Jul 2012 22:30:22 +0530
+ -- Vasudev Kamath <kamathvasudev at gmail.com>  Sat, 14 Jul 2012 22:44:35 +0530
 
 fonts-nakula (1.0-2) unstable; urgency=low
 
diff --git a/debian/preinst b/debian/preinst
new file mode 100644
index 0000000..1fe4403
--- /dev/null
+++ b/debian/preinst
@@ -0,0 +1,38 @@
+#!/bin/sh
+# preinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+        if [ -d /usr/share/fonts/truetype/fonts-nakula/ ]; then
+            rm -rf /usr/share/fonts/truetype/fonts-nakula/
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

-- 
fonts-nakula.git



More information about the Debian-in-commits mailing list