Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 25c8bf5

Browse files
committed
Fixed several issues affecting win32 builds
1 parent 589d5db commit 25c8bf5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

builder.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,21 +182,21 @@ def _checkBuildTools(self):
182182
# raise Exception("Don't know where 7z is")
183183

184184
def filename(self):
185-
desc = b.getDesc()
185+
desc = self.getDesc()
186186
zipname = "%s-%s.zip" % (self.platform, desc)
187187
return zipname
188188

189189
def package(self):
190190
zipname = self.filename()
191-
return b.zip(root="dist", archive=zipname)
191+
return self.zip(root="dist", archive=zipname)
192192

193193
def zip(self, root, archive):
194194
old_cwd = os.getcwd()
195195
print "old_cwd: ", old_cwd
196196
os.chdir(root)
197197
try:
198198
self.popen("zip", [self.zipper, "a", archive, "."])
199-
if not os.path.exists(os.path.join(root,archive)):
199+
if not os.path.exists(archive):
200200
print "something went wrong, the archive dosn'et exist"
201201
raise Exception("something went wrong. the archive doesn't exist")
202202
finally:

uploader.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ def __init__(self):
2828
try:
2929
import boto
3030
except ImportError:
31+
import sys
3132
sys.path.append(r"c:\devel\boto")
3233
import boto
3334

3435
from boto.s3.connection import S3Connection
3536
from boto.s3.key import Key
3637

3738
self.conn = S3Connection('1QWAVYJPN7K868CEDZ82')
38-
self.bucket = conn.get_bucket("minecraft-overviewer")
39+
self.bucket = self.conn.get_bucket("minecraft-overviewer")
3940

4041
def check_exists(self, path):
4142
k = self.bucket.get_key(path)
@@ -47,7 +48,7 @@ def get_url(self, path):
4748
return "https://s3.amazonaws.com/minecraft-overviewer/%s" % path
4849

4950
def upload(self, path, srcfile):
50-
k = bucket.new_key(path)
51+
k = self.bucket.new_key(path)
5152
options = {}
5253
if path.endswith(".txt"):
5354
options['headers'] = {'Content-Type': 'text/plain'}

0 commit comments

Comments
 (0)