mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-10 23:47:55 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user