upload_static_files_to_s3: Improve logging clarity.

The goal is to make it seem less like the build is "hanging" during the
upload step.
This commit is contained in:
Neil Williams
2015-02-26 11:39:05 -08:00
parent 30e2256fdd
commit 1605b48eda

View File

@@ -38,6 +38,7 @@ def upload(static_root, bucket_url):
bucket = s3.get_bucket(bucket_url.netloc, validate=False)
# build a list of files already in the bucket
print "checking existing files on s3..."
remote_files = {key.name : key.etag.strip('"') for key in bucket.list()}
# upload local files not already in the bucket
@@ -72,6 +73,8 @@ def upload(static_root, bucket_url):
md5=(etag, base64_tag),
)
print "all done"
def s3_url(text):
parsed = urlparse.urlparse(text)