diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 360: use wget --no-cert to deal with https downloads

Message ID 20120727154722.21352.19262.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Andy Doan July 27, 2012, 3:47 p.m. UTC
Merge authors:
  Abner Silva (abnerf)
Related merge proposals:
  https://code.launchpad.net/~abnerf/lava-dispatcher/lava-dispatcher-no-cert/+merge/117056
  proposed by: Abner Silva (abnerf)
------------------------------------------------------------
revno: 360 [merge]
committer: Andy Doan <andy.doan@linaro.org>
branch nick: lava-dispatcher
timestamp: Fri 2012-07-27 10:42:50 -0500
message:
  use wget --no-cert to deal with https downloads
modified:
  lava_dispatcher/client/master.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/client/master.py'
--- lava_dispatcher/client/master.py	2012-07-22 01:40:55 +0000
+++ lava_dispatcher/client/master.py	2012-07-27 12:15:47 +0000
@@ -81,7 +81,7 @@ 
     while num_retry > 0:
         try:
             session.run(
-                'wget --no-proxy --connect-timeout=30 %s -O- %s |'
+                'wget --no-check-certificate --no-proxy --connect-timeout=30 %s -O- %s |'
                 'tar --warning=no-timestamp --numeric-owner -C %s -x%sf -'
                 % (WGET_DEBUGGING_OPTIONS, tarball_url, dest, decompression_char),
                 timeout=timeout)
@@ -236,7 +236,7 @@ 
         git_url = session._client.device_option("git_url_disablesuspend_sh")
         lava_proxy = session._client.context.lava_proxy
         session.run("sh -c 'export http_proxy=%s'" % lava_proxy)
-        session.run('wget %s -O %s' % (git_url, script_path))
+        session.run('wget --no-check-certificate %s -O %s' % (git_url, script_path))
         session.run('chmod +x %s' % script_path)
         session.run('chown :2000 %s' % script_path)