[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

./packages/libreoffice/3.3.0/unstable r2371: rm -rf /user /share; run sync_extensions in postinst when upgrading from pre-3.3.0-3



------------------------------------------------------------
revno: 2371
committer: Rene Engelhard <rene@debian.org>
branch nick: unstable
timestamp: Thu 2011-02-10 09:14:58 +0100
message:
  rm -rf /user /share; run sync_extensions in postinst when upgrading from pre-3.3.0-3
modified:
  changelog
  libreoffice-common.postinst.in
  libreoffice-common.preinst.in
=== modified file 'changelog'
--- a/changelog	2011-02-09 19:21:48 +0000
+++ b/changelog	2011-02-10 08:14:58 +0000
@@ -11,8 +11,12 @@
     - conflict against openoffice.org-dev-doc (closes: #612494) 
   * debian/shell-lib-extensions.sh: properly set INSTDIR and d also in
     sync_extensions() (closes: #612572) 
+  * libreoffice-common.preinst.in: rm -rf /share and /user when upgrading from
+    versions before 3.3.0-3
+  * libreoffice-common.postinst.in: run sync_extensions() in postinst when upgrading
+    from versions before 3.3.0-3 explicitly
 
- -- Rene Engelhard <rene@debian.org>  Wed, 09 Feb 2011 19:19:15 +0000
+ -- Rene Engelhard <rene@debian.org>  Thu, 10 Feb 2011 09:14:22 +0100
 
 libreoffice (1:3.3.0-2) unstable; urgency=low
 

=== modified file 'libreoffice-common.postinst.in'
--- a/libreoffice-common.postinst.in	2010-10-12 00:40:55 +0000
+++ b/libreoffice-common.postinst.in	2011-02-10 08:14:58 +0000
@@ -15,5 +15,11 @@
 	done
 fi
 
+if [ "$1" = "configure" ]; then
+	if dpkg --compare-versions "$2" lt "1:3.3.0-3"; then
+		sync_extensions
+	fi
+fi
+
 #DEBHELPER#
 

=== modified file 'libreoffice-common.preinst.in'
--- a/libreoffice-common.preinst.in	2011-01-24 22:12:57 +0000
+++ b/libreoffice-common.preinst.in	2011-02-10 08:14:58 +0000
@@ -20,7 +20,10 @@
         if dpkg --compare-versions "$2" lt "1:3.3.0~rc4-2"; then
                 rm_conffile "/etc/bash_completion.d/ooffice.sh" libreoffice-common
         fi
-
+        if dpkg --compare-versions "$2" lt "1:3.3.0-3"; then
+		rm -rf /share
+		rm -rf /user
+	fi
 	;;
 esac
 


Reply to: