Skip to content

Commit

Permalink
Addonman: fix for get_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Feb 17, 2017
1 parent ebf51f2 commit 1e5af69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/py/cuda_addonman/work_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
from . import opt


def get_url(url, fn):
def get_url(url, fn, del_first=False):
fn_temp = fn+'.download'
if os.path.isfile(fn_temp):
os.remove(fn_temp)
if del_first and os.path.isfile(fn):
os.remove(fn)

if opt.proxy:
proxies = { 'http': opt.proxy, 'https': opt.proxy, }
Expand Down Expand Up @@ -49,7 +51,7 @@ def get_plugin_zip(url):

def get_channel_list(url):
temp_fn = os.path.join(tempfile.gettempdir(), 'cuda_addons_dir.txt')
get_url(url, temp_fn)
get_url(url, temp_fn, True)
if not os.path.isfile(temp_fn): return

text = open(temp_fn, encoding='utf8').read()
Expand Down
2 changes: 1 addition & 1 deletion setup/cuda_ver.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
cuda_ver=1.6.8.0
cuda_ver=1.6.8.1

0 comments on commit 1e5af69

Please sign in to comment.