Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: client/deps/mysql/mysql.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/deps/mysql/common.py ('k') | client/deps/pgpool/common.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import os 3 import os
4 import common
5 from autotest_lib.client.bin import utils 4 from autotest_lib.client.bin import utils
6 5
7 version = 3 6 version = 3
8 7
9 def setup(tarball, topdir): 8 def setup(tarball, topdir):
10 srcdir = os.path.join(topdir, 'src') 9 srcdir = os.path.join(topdir, 'src')
11 if not os.path.exists(tarball): 10 if not os.path.exists(tarball):
12 utils.get_file('http://mirror.x10.com/mirror/mysql/Downloads/MySQL-5.0/m ysql-5.0.45.tar.gz', tarball) 11 utils.get_file('http://mirror.x10.com/mirror/mysql/Downloads/MySQL-5.0/m ysql-5.0.45.tar.gz', tarball)
13 utils.extract_tarball_to_dir(tarball, 'src') 12 utils.extract_tarball_to_dir(tarball, 'src')
14 os.chdir(srcdir) 13 os.chdir(srcdir)
15 utils.system ('./configure --prefix=%s/mysql --enable-thread-safe-client' \ 14 utils.configure('--prefix=%s/mysql --enable-thread-safe-client' \
16 % topdir) 15 % topdir)
17 utils.system('make -j %d' % utils.count_cpus()) 16 utils.make('-j %d' % utils.count_cpus())
18 utils.system('make install') 17 utils.make('install')
19 18
20 # 19 #
21 # MySQL doesn't create this directory on it's own. 20 # MySQL doesn't create this directory on it's own.
22 # This is where database logs and files are created. 21 # This is where database logs and files are created.
23 # 22 #
24 try: 23 try:
25 os.mkdir(topdir + '/mysql/var') 24 os.mkdir(topdir + '/mysql/var')
26 except: 25 except:
27 pass 26 pass
28 # 27 #
29 # Initialize the database. 28 # Initialize the database.
30 # 29 #
31 utils.system('%s/mysql/bin/mysql_install_db' % topdir) 30 utils.system('%s/mysql/bin/mysql_install_db' % topdir)
32 31
33 os.chdir(topdir) 32 os.chdir(topdir)
34 33
35 pwd = os.getcwd() 34 pwd = os.getcwd()
36 tarball = os.path.join(pwd, 'mysql-5.0.45.tar.gz') 35 tarball = os.path.join(pwd, 'mysql-5.0.45.tar.gz')
37 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 36 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
OLDNEW
« no previous file with comments | « client/deps/mysql/common.py ('k') | client/deps/pgpool/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698