Mailinglist Archive: opensuse-commit (1400 mails)

< Previous Next >
commit mariadb for openSUSE:12.1
Hello community,

here is the log from the commit of package mariadb for openSUSE:12.1 checked in
at 2011-11-05 10:59:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1/mariadb (Old)
and /work/SRC/openSUSE:12.1/.mariadb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mariadb", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:12.1/mariadb/mariadb.changes 2011-10-24
13:06:49.000000000 +0200
+++ /work/SRC/openSUSE:12.1/.mariadb.new/mariadb.changes 2011-11-05
11:26:23.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Nov 2 12:55:18 UTC 2011 - bkutil@xxxxxxxx
+
+- Fix pretrans script in spec file to use RPM embedded LUA.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mariadb.spec ++++++
--- /var/tmp/diff_new_pack.Ws3PD8/_old 2011-11-05 11:26:24.000000000 +0100
+++ /var/tmp/diff_new_pack.Ws3PD8/_new 2011-11-05 11:26:24.000000000 +0100
@@ -444,24 +444,24 @@
%preun

#-------------------------------------------------------------------------------
[ $1 = 1 ] || /usr/sbin/rcmysql stop
-%pretrans
-if [ -x /usr/sbin/rcmysql ]; then
- RESTART=""
- /usr/sbin/rcmysql status > /dev/null && RESTART="yes"
- /usr/sbin/rcmysql stop
- [ "$RESTART" ] && mkdir -p /var/run/mysql/restart
-fi
-dbfile=var/mysql/mysql/db.ISM
-olddir=var/mysql
-newdir=var/lib/mysql
-# Do the database files still belong to root (very old installation)?
-# Change ownerships
-if [ -O $dbfile ]
-then
-chown -Rv mysql:mysql var/mysql/
-fi
+%pretrans -p <lua>
+if posix.access("/usr/sbin/rcmysql", "x") then
+ restart = os.execute("/usr/sbin/rcmysql status > /dev/null")
+ os.execute("/usr/sbin/rcmysql stop")

-#-------------------------------------------------------------------------------
+ if restart == 0 then
+ os.execute("/bin/mkdir -p /var/run/mysql/restart")
+ end
+end
+
+dbfile="var/mysql/mysql/db.ISM"
+olddir="var/mysql"
+newdir="var/lib/mysql"
+-- Do the database files still belong to root (very old installation)?
+-- Change ownerships
+if posix.stat(dbfile, "uid") == 0 then
+ os.execute("/bin/chown -Rv mysql:mysql var/mysql/")
+end

%posttrans

#-------------------------------------------------------------------------------

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages