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

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

Issue 657028: Remove checked in binary from the tarball to fix non-x86 test build. (Closed)
Patch Set: Created 10 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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 4 import common
5 from autotest_lib.client.bin import utils 5 from autotest_lib.client.bin import utils
6 6
7 version = 1 7 version = 1
8 8
9 def setup(tarball, topdir): 9 def setup(tarball, topdir):
10 srcdir = os.path.join(topdir, 'src') 10 srcdir = os.path.join(topdir, 'src')
11 utils.extract_tarball_to_dir(tarball, srcdir) 11 utils.extract_tarball_to_dir(tarball, srcdir)
12 os.chdir(srcdir) 12 os.chdir(srcdir)
13 # This binary is not necessary and breaks non-x86 autotest builds
14 os.remove('contrib/fix_standby')
13 utils.system('make') 15 utils.system('make')
14 utils.system('make binprefix=%s manprefix=%s install' % (topdir, topdir)) 16 utils.system('make binprefix=%s manprefix=%s install' % (topdir, topdir))
15 os.chdir(topdir) 17 os.chdir(topdir)
16 18
17 19
18 # The source is grabbed from 20 # The source is grabbed from
19 # http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.27.tar.gz 21 # http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.27.tar.gz
20 pwd = os.getcwd() 22 pwd = os.getcwd()
21 tarball = os.path.join(pwd, 'hdparm-9.27.tar.gz') 23 tarball = os.path.join(pwd, 'hdparm-9.27.tar.gz')
22 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 24 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698