1.0.7 for macosx and ios by srg70 fixes

pull/1/head
DiMartinoXBMC 2016-01-17 12:10:26 +03:00
parent 997b145940
commit c210d2d31b
2 changed files with 4 additions and 4 deletions

View File

@ -125,8 +125,8 @@ def get_system(ret):
ret["system"] = 'darwin'
ret["message"] = ['It is possible to compile python-libtorrent for OS X.',
'But you would have to do it by yourself, there is some info on github.com.']
elif ret["os"] == "ios":
ret["system"] = 'ios'
elif ret["os"] == "ios" and ret["arch"] == "arm":
ret["system"] = 'ios_arm'
ret["message"] = ['It is probably NOT possible to compile python-libtorrent for iOS.',
'But you can use torrent-client control functions.']

View File

@ -44,7 +44,7 @@ if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system']
for ver in versions:
if not os.path.isdir(os.path.join(os.path.dirname(__file__), platform['system'],ver)):
versions.remove(ver)
if len(versions)>1:
if len(versions)>0:
platform['version'] = versions[0]
else:
log('die because the folder is empty')
@ -69,7 +69,7 @@ if platform['system'] not in ['windows']:
try:
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
import libtorrent
elif platform['system'] in ['darwin', 'ios']:
elif platform['system'] in ['darwin', 'ios_arm']:
import imp
path_list = [dest_path]
log('path_list = ' + str(path_list))