[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] rpm: change %postun to %preun

Back to archive index

IWAI****@jenki***** IWAI****@jenki*****
Thu Oct 4 11:04:21 JST 2012


IWAI, Masaharu	2012-05-09 22:08:36 +0900 (Wed, 09 May 2012)

  New Revision: 289839ad8b80cac0590fcb64af10e8b44e0fbfa0
  https://github.com/mroonga/mroonga/commit/289839ad8b80cac0590fcb64af10e8b44e0fbfa0

  Merged 28b996c: Merge pull request #1 from iwaim/master

  Log:
    rpm: change %postun to %preun
    
    %preun is better than %postun with uninstalling mroonga plugin from
    MySQL plugins. Because when postun script run, mroonga plugin file
    didn't exist.

  Modified files:
    packages/rpm/centos/mysql-mroonga.spec.in
    packages/rpm/fedora/mysql-mroonga.spec.in

  Modified: packages/rpm/centos/mysql-mroonga.spec.in (+1 -1)
===================================================================
--- packages/rpm/centos/mysql-mroonga.spec.in    2012-05-09 22:07:25 +0900 (3433276)
+++ packages/rpm/centos/mysql-mroonga.spec.in    2012-05-09 22:08:36 +0900 (d6379d0)
@@ -135,7 +135,7 @@ eval $command || \
 	(echo "run the following command to register mroonga:"; \
 	 echo "  $command")
 
-%postun
+%preun
 if [ "$1" = 0 ]; then
     sql="
     DROP FUNCTION last_insert_grn_id;

  Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+1 -1)
===================================================================
--- packages/rpm/fedora/mysql-mroonga.spec.in    2012-05-09 22:07:25 +0900 (eb47899)
+++ packages/rpm/fedora/mysql-mroonga.spec.in    2012-05-09 22:08:36 +0900 (e1f3fd7)
@@ -89,7 +89,7 @@ eval $command || \
 	(echo "run the following command to register mroonga:"; \
 	 echo "  $command")
 
-%postun
+%preun
 if [ "$1" = 0 ]; then
     sql="
     DROP FUNCTION last_insert_grn_id;
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index