[packages/mysql-utilities] fixup paths so that mysqluc could startup
glen
glen at pld-linux.org
Fri Oct 5 00:19:50 CEST 2012
commit e914d2466b05f81672681619e69dd90f366524e7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Oct 5 00:41:55 2012 +0300
fixup paths so that mysqluc could startup
mysql-utilities.spec | 2 ++
paths.patch | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
---
diff --git a/mysql-utilities.spec b/mysql-utilities.spec
index 22a14c7..b3876b8 100644
--- a/mysql-utilities.spec
+++ b/mysql-utilities.spec
@@ -8,6 +8,7 @@ Group: Applications/Databases
Source0: ftp://ftp.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/mysql-workbench-gpl-5.2.44-src.tar.gz
# Source0-md5: ea609fcd5d42333291a8ea6015627583
Patch0: mu-man.patch
+Patch1: paths.patch
URL: https://code.launchpad.net/mysql-utilities
BuildRequires: python-Sphinx >= 1.0
BuildRequires: python-devel >= 1:2.4
@@ -26,6 +27,7 @@ and administering MySQL servers.
mv mysql-workbench-gpl-*-src/ext/%{name}/* .
%{__rm} -r mysql-workbench-gpl-*-src
%patch0 -p1
+%patch1 -p1
%build
v=$(head -n1 CHANGES.txt | awk '{print $2}')
diff --git a/paths.patch b/paths.patch
new file mode 100644
index 0000000..2e7cc49
--- /dev/null
+++ b/paths.patch
@@ -0,0 +1,22 @@
+--- mysql-utilities-1.1.0/scripts/mysqluc.py~ 2012-09-26 23:50:42.000000000 +0300
++++ mysql-utilities-1.1.0/scripts/mysqluc.py 2012-10-05 00:18:03.368605109 +0300
+@@ -56,7 +56,7 @@
+ """
+ GOODBYE_MESSAGE = "\nThanks for using the MySQL Utilities Client!\n"
+ PRINT_WIDTH = 75
+-UTIL_PATH = "/scripts"
++UTIL_PATH = "/usr/bin"
+
+ def build_variable_dictionary_list(args):
+ """Build a variable dictionary from the arguments
+--- mysql-utilities-1.1.0/mysql/utilities/common/utilities.py~ 2012-09-26 23:50:47.000000000 +0300
++++ mysql-utilities-1.1.0/mysql/utilities/common/utilities.py 2012-10-05 00:20:03.354069432 +0300
+@@ -42,7 +42,7 @@
+
+ Returns string - path to utilities or None if not found
+ """
+- needle = 'mysqlreplicate.py'
++ needle = 'mysqlreplicate'
+
+ # Try the default by itself
+ if os.path.isfile(os.path.join(default_path, needle)):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql-utilities.git/commitdiff/520bb0518a5b599a2cc03cd1970328022fa65f9f
More information about the pld-cvs-commit
mailing list