mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
updated build.py
This commit is contained in:
parent
890203e451
commit
3fbdaaa11e
|
@ -13,9 +13,9 @@ if os.name == "nt":
|
|||
platform = "win32"
|
||||
else:
|
||||
# get name
|
||||
name = os.popen("uname").readline().strip().lower()
|
||||
if name == "darwin":
|
||||
name = "osx"
|
||||
osname = os.popen("uname").readline().strip().lower()
|
||||
if osname == "darwin":
|
||||
osname = "osx"
|
||||
|
||||
# get arch
|
||||
machine = os.popen("uname -m").readline().strip().lower()
|
||||
|
@ -28,11 +28,11 @@ else:
|
|||
elif "power" in machine.lower():
|
||||
arch = "ppc"
|
||||
|
||||
platform = name + "_" + arch
|
||||
platform = osname + "_" + arch
|
||||
|
||||
print "%s-%s-%s" % (name,version, platform)
|
||||
|
||||
src_package = "%s-%s-src.zip" % (name,version)
|
||||
src_package = "%s-%s-src.zip" % (name, version)
|
||||
|
||||
root_dir = os.getcwd() + "/work"
|
||||
src_dir = ""
|
||||
|
@ -40,6 +40,7 @@ src_dir = ""
|
|||
def fetch_file(server, url, local):
|
||||
try:
|
||||
conn = httplib.HTTPConnection(server)
|
||||
print "trying %s%s" % (server, url)
|
||||
conn.request("GET", url)
|
||||
response = conn.getresponse()
|
||||
if response.status != 200:
|
||||
|
|
Loading…
Reference in a new issue