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

Side by Side Diff: client/deps/pgsql/pgsql.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/pgsql/common.py ('k') | client/deps/systemtap/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 = 4 6 version = 4
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('ftp://ftp.postgresql.org/pub/source/v8.3.1/postgresql-8. 3.1.tar.bz2', tarball) 11 utils.get_file('ftp://ftp.postgresql.org/pub/source/v8.3.1/postgresql-8. 3.1.tar.bz2', 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 --without-readline --without-zlib --enable-debug --prefix=%s/pgsql' % topdir) 14 utils.configure('--without-readline --without-zlib --enable-debug --prefix=% s/pgsql' % topdir)
16 utils.system('make -j %d' % utils.count_cpus()) 15 utils.make('-j %d' % utils.count_cpus())
17 utils.system('make install') 16 utils.make('install')
18 17
19 os.chdir(topdir) 18 os.chdir(topdir)
20 19
21 pwd = os.getcwd() 20 pwd = os.getcwd()
22 tarball = os.path.join(pwd, 'postgresql-8.3.1.tar.bz2') 21 tarball = os.path.join(pwd, 'postgresql-8.3.1.tar.bz2')
23 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 22 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
OLDNEW
« no previous file with comments | « client/deps/pgsql/common.py ('k') | client/deps/systemtap/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698