packages: mysql/mysql.spec - restore banner

glen glen at pld-linux.org
Thu Mar 10 18:55:58 CET 2011


Author: glen                         Date: Thu Mar 10 17:55:58 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- restore banner

---- Files affected:
packages/mysql:
   mysql.spec (1.535 -> 1.536) 

---- Diffs:

================================================================
Index: packages/mysql/mysql.spec
diff -u packages/mysql/mysql.spec:1.535 packages/mysql/mysql.spec:1.536
--- packages/mysql/mysql.spec:1.535	Thu Mar 10 11:03:54 2011
+++ packages/mysql/mysql.spec	Thu Mar 10 18:55:53 2011
@@ -905,16 +905,20 @@
 	configs="$configs $config_file"
 done
 
+(
 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
 echo 'Thus, you should invoke:'
 for config in $configs; do
 	sed -i -e '
 		s/set-variable\s*=\s* //
+		# use # as comment in config
+		s/^;/#/
 	' $config
 
 	datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
 	echo "# mysql_upgrade --datadir=$datadir"
 done
+) | %banner -e %{name}-5.1
 
 %triggerpostun -- mysql < 5.5.0
 configs=""
@@ -940,6 +944,9 @@
 	configs="$configs $config_file"
 done
 
+(
+echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
+echo 'Thus, you should invoke:'
 for config in $configs; do
 	sed -i -e '
 		s/^language *= *polish/lc-messages = pl_PL/i
@@ -947,8 +954,14 @@
 		/^skip-locking/skip-external-locking/
 		# this is not valid for server. it is client option
 		s/default-character-set/# client-config: &/
+		# use # as comment in config
+		s/^;/#/
 	' $config
+
+	datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
+	echo "# mysql_upgrade --datadir=$datadir"
 done
+) | %banner -e %{name}-5.5
 
 %files
 %defattr(644,root,root,755)
@@ -1220,6 +1233,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.536  2011/03/10 17:55:53  glen
+- restore banner
+
 Revision 1.535  2011/03/10 10:03:54  arekm
 - rel 5; paste typo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mysql/mysql.spec?r1=1.535&r2=1.536&f=u



More information about the pld-cvs-commit mailing list