chiark / gitweb /
server: fix logging of file upload to awsbucket
authorHans-Christoph Steiner <hans@eds.org>
Wed, 23 Apr 2014 23:55:53 +0000 (19:55 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 24 Apr 2014 00:10:02 +0000 (20:10 -0400)
Thanks to Adam Pritchard for reporting this

fdroidserver/server.py

index fd772fa8161b8e08ab0f8001731f9c7927280c3a..0875d8dc3765361246abf5fefaeb3195cdd6c0e8 100644 (file)
@@ -97,7 +97,7 @@ def update_awsbucket(repo_section):
                 elif file_to_upload.endswith('.asc'):
                     extra['content_type'] = 'application/pgp-signature'
                 logging.info(' uploading ' + os.path.relpath(file_to_upload)
-                             + ' to s3://' + awsbucket + '/' + obj.name)
+                             + ' to s3://' + awsbucket + '/' + object_name)
                 obj = driver.upload_object(file_path=file_to_upload,
                                            container=container,
                                            object_name=object_name,