SPECS: mysql.spec - xargs not neccessary in last trigger
glen
glen at pld-linux.org
Mon Jul 18 16:22:24 CEST 2005
Author: glen Date: Mon Jul 18 14:22:24 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- xargs not neccessary in last trigger
---- Files affected:
SPECS:
mysql.spec (1.289 -> 1.290)
---- Diffs:
================================================================
Index: SPECS/mysql.spec
diff -u SPECS/mysql.spec:1.289 SPECS/mysql.spec:1.290
--- SPECS/mysql.spec:1.289 Mon Jul 18 15:27:26 2005
+++ SPECS/mysql.spec Mon Jul 18 16:22:19 2005
@@ -25,7 +25,7 @@
Name: mysql
Group: Applications/Databases
Version: 4.1.12
-Release: 2.1
+Release: 2.4
License: GPL + MySQL FLOSS Exception
Source0: http://mysql.dataphone.se/Downloads/MySQL-4.1/%{name}-%{version}.tar.gz
# Source0-md5: 56a6f5cacd97ae290e07bbe19f279af1
@@ -671,7 +671,7 @@
%triggerpostun -- mysql <= 4.1.1
# For better compatibility with prevoius versions:
-for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf | xargs); do
+for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do
if echo "$config" | grep -q '^/'; then
config_file="$config"
elif [ -f "/etc/mysql/$config" ]; then
@@ -685,6 +685,11 @@
fi
config_file="$clusterdir/mysqld.conf"
fi
+
+ if [ ! -f "$config_file" ]; then
+ echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
+ exit 1
+ fi
echo "Adding option old-passwords to config: $config_file"
echo "If you want to use new, better passwords - remove it"
@@ -864,6 +869,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.290 2005/07/18 14:22:19 glen
+- xargs not neccessary in last trigger
+
Revision 1.289 2005/07/18 13:27:26 glen
- fix mysql 4.1.1 migration trigger where one has leading space in cluster definition
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mysql.spec?r1=1.289&r2=1.290&f=u
More information about the pld-cvs-commit
mailing list