[Python-modules-commits] r28489 - in packages/plainbox/trunk/debian (2 files)
zyga-guest at users.alioth.debian.org
zyga-guest at users.alioth.debian.org
Mon Apr 7 22:17:50 UTC 2014
Date: Monday, April 7, 2014 @ 22:17:50
Author: zyga-guest
Revision: 28489
debian/python3-plainbox.preinst: remove
/usr/lib/python3/dist-packages/{data,testdata} on upgrades (if they are
not symbolic links). This fixes upgrades from the previous version.
Added:
packages/plainbox/trunk/debian/python3-plainbox.preinst
Modified:
packages/plainbox/trunk/debian/changelog
Modified: packages/plainbox/trunk/debian/changelog
===================================================================
--- packages/plainbox/trunk/debian/changelog 2014-04-07 21:30:46 UTC (rev 28488)
+++ packages/plainbox/trunk/debian/changelog 2014-04-07 22:17:50 UTC (rev 28489)
@@ -1,3 +1,11 @@
+plainbox (0.5.3-2) UNRELEASED; urgency=medium
+
+ * debian/python3-plainbox.preinst: remove
+ /usr/lib/python3/dist-packages/{data,testdata} on upgrades (if they are
+ not symbolic links). This fixes upgrades from the previous version.
+
+ -- Zygmunt Krynicki <zygmunt.krynicki at canonical.com> Tue, 08 Apr 2014 00:11:37 +0200
+
plainbox (0.5.3-1) unstable; urgency=medium
* New upstream release
Added: packages/plainbox/trunk/debian/python3-plainbox.preinst
===================================================================
--- packages/plainbox/trunk/debian/python3-plainbox.preinst (rev 0)
+++ packages/plainbox/trunk/debian/python3-plainbox.preinst 2014-04-07 22:17:50 UTC (rev 28489)
@@ -0,0 +1,44 @@
+#! /bin/sh
+# Pre-install script for âpython3-plainboxâ.
+#
+# Manpage: âdh_installdeb(1)â
+
+set -e
+
+# Summary of ways 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 the Debian Policy §6.5 in the âdebian-policyâ package
+# or on the web at <URL:http://www.debian.org/doc/debian-policy/>.
+
+action="$1"
+
+case "$action" in
+ upgrade)
+ data_dir="/usr/lib/python3/dist-packages/plainbox/data"
+ if [ -d "$data_dir" ] && [ ! -L "$data_dir" ] ; then
+ # The âdataâ location should be platform-independent.
+ # The new package will replace the directory with a symlink.
+ rm -rf "$data_dir"
+ fi
+ testdata_dir="/usr/lib/python3/dist-packages/plainbox/test-data"
+ if [ -d "$testdata_dir" ] && [ ! -L "$testdata_dir" ] ; then
+ # The âdataâ location should be platform-independent.
+ # The new package will replace the directory with a symlink.
+ rm -rf "$testdata_dir"
+ fi
+ ;;
+
+ install|abort-upgrade)
+ ;;
+
+ *)
+ printf "preinst called with unknown action â%sâ\n" "$action" >&2
+ exit 1
+ ;;
+
+esac
+
+#DEBHELPER#
More information about the Python-modules-commits
mailing list