From 3fbdaaa11e5f47e616da0f8ae31fb0803c6afc9a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 22 Mar 2008 19:33:45 +0000 Subject: [PATCH] updated build.py --- scripts/build.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/build.py b/scripts/build.py index c1f81efe4..5cb39ec79 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -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: