summaryrefslogtreecommitdiff
path: root/client/deps/libnet/libnet.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/deps/libnet/libnet.py')
-rwxr-xr-xclient/deps/libnet/libnet.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/client/deps/libnet/libnet.py b/client/deps/libnet/libnet.py
index eac66b25..90ab0238 100755
--- a/client/deps/libnet/libnet.py
+++ b/client/deps/libnet/libnet.py
@@ -8,19 +8,19 @@ from autotest_lib.client.bin import autotest_utils
version = 1
-def setup(tarball, topdir):
- srcdir = os.path.join(topdir, 'src')
- if not os.path.exists(tarball):
- utils.get_file('http://www.packetfactory.net/libnet/dist/libnet.tar.gz',
- tarball)
- autotest_utils.extract_tarball_to_dir(tarball, 'src')
- os.chdir(srcdir)
- utils.system ('./configure --prefix=%s/libnet' % topdir)
- utils.system('make')
- utils.system('make install')
+def setup(tarball, topdir):
+ srcdir = os.path.join(topdir, 'src')
+ if not os.path.exists(tarball):
+ utils.get_file('http://www.packetfactory.net/libnet/dist/libnet.tar.gz',
+ tarball)
+ autotest_utils.extract_tarball_to_dir(tarball, 'src')
+ os.chdir(srcdir)
+ utils.system ('./configure --prefix=%s/libnet' % topdir)
+ utils.system('make')
+ utils.system('make install')
+
+ os.chdir(topdir)
- os.chdir(topdir)
-
pwd = os.getcwd()
tarball = os.path.join(pwd, 'libnet.tar.gz')
utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)