[Python-apps-commits] r688 - in packages/pypolicyd-spf/trunk/debian (2 files)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Sat Feb 23 19:58:08 UTC 2008
Date: Saturday, February 23, 2008 @ 19:58:07
Author: piotr
Revision: 688
restore old conffile name while downgrading to =< 0.5.2-3
Added:
packages/pypolicyd-spf/trunk/debian/postfix-policyd-spf-python.postrm
Modified:
packages/pypolicyd-spf/trunk/debian/changelog
Modified: packages/pypolicyd-spf/trunk/debian/changelog
===================================================================
--- packages/pypolicyd-spf/trunk/debian/changelog 2008-02-23 05:46:10 UTC (rev 687)
+++ packages/pypolicyd-spf/trunk/debian/changelog 2008-02-23 19:58:07 UTC (rev 688)
@@ -10,7 +10,8 @@
* Update install-conf-fix.patch for new binary package name
* Rename upstream man pages in debian/rules to match debian binary package
name
- * Add preint to move conffile to correct directory for new package name
+ * Add preinst and prerm to move conffile to correct directory for new
+ package name
-- Scott Kitterman <scott at kitterman.com> Sat, 23 Feb 2008 00:38:02 -0500
Added: packages/pypolicyd-spf/trunk/debian/postfix-policyd-spf-python.postrm
===================================================================
--- packages/pypolicyd-spf/trunk/debian/postfix-policyd-spf-python.postrm (rev 0)
+++ packages/pypolicyd-spf/trunk/debian/postfix-policyd-spf-python.postrm 2008-02-23 19:58:07 UTC (rev 688)
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+# conffile renamed in 0.5.2-3
+if dpkg --compare-versions "$2" lt-nl "0.5.2-3"; then
+ # downgrading to < 0.5.2-3 -- restore old conffile name
+ if [ ! -e /etc/python-policyd-spf/policyd-spf.conf ]; then
+ mv /etc/postfix-policyd-spf-python/policyd-spf.conf /etc/python-policyd-spf/policyd-spf.conf
+ rmdir /etc/postfix-policyd-spf-python/
+ fi
+
+#DEBHELPER#
+
+exit 0
More information about the Python-apps-commits
mailing list