[Python-modules-commits] r13158 - in packages/mutagen/trunk/debian (python-mutagen.preinst)

mithrandi-guest at users.alioth.debian.org mithrandi-guest at users.alioth.debian.org
Sun May 30 09:01:10 UTC 2010


    Date: Sunday, May 30, 2010 @ 09:01:00
  Author: mithrandi-guest
Revision: 13158

Add preinst script to clean up after pycentral.

Added:
  packages/mutagen/trunk/debian/python-mutagen.preinst

Added: packages/mutagen/trunk/debian/python-mutagen.preinst
===================================================================
--- packages/mutagen/trunk/debian/python-mutagen.preinst	                        (rev 0)
+++ packages/mutagen/trunk/debian/python-mutagen.preinst	2010-05-30 09:01:00 UTC (rev 13158)
@@ -0,0 +1,8 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt "1.19-2"
+then
+        pycentral pkgremove python-foo
+fi
+#DEBHELPER#




More information about the Python-modules-commits mailing list