[Python-apps-commits] r2752 - in packages/s3cmd/trunk/debian (changelog s3cmd.preinst)

dottedmag-guest at users.alioth.debian.org dottedmag-guest at users.alioth.debian.org
Wed Apr 15 11:19:55 UTC 2009


    Date: Wednesday, April 15, 2009 @ 11:19:55
  Author: dottedmag-guest
Revision: 2752

Added preinst script to deregister from pycentral

Added:
  packages/s3cmd/trunk/debian/s3cmd.preinst
Modified:
  packages/s3cmd/trunk/debian/changelog

Modified: packages/s3cmd/trunk/debian/changelog
===================================================================
--- packages/s3cmd/trunk/debian/changelog	2009-04-15 11:17:45 UTC (rev 2751)
+++ packages/s3cmd/trunk/debian/changelog	2009-04-15 11:19:55 UTC (rev 2752)
@@ -1,6 +1,7 @@
 s3cmd (0.9.9-2) UNRELEASED; urgency=low
 
   * Switched to debian-support.
+    - added preinst script to de-register from pycentral.
   * Standards-Version bumped to 3.8.1, no changes needed.
   * Private python modules were moved to /usr/share/s3cmd:
     - debian/s3cmd.dirs

Added: packages/s3cmd/trunk/debian/s3cmd.preinst
===================================================================
--- packages/s3cmd/trunk/debian/s3cmd.preinst	                        (rev 0)
+++ packages/s3cmd/trunk/debian/s3cmd.preinst	2009-04-15 11:19:55 UTC (rev 2752)
@@ -0,0 +1,11 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+if [ "$1" = upgrade ]
+then
+        if dpkg --compare-versions "$2" lt 0.14-1; then
+                pycentral pkgremove s3cmd
+        fi
+fi
+
+#DEBHELPER#




More information about the Python-apps-commits mailing list