From 9d2a3bcbc1b491a9e3e3946bfff5728022f7ec55 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Sat, 21 Aug 2021 16:19:21 +0300 Subject: [PATCH] Release 1.2.6 --- package/archlinux/PKGBUILD | 2 +- src/ahriman/core/upload/s3.py | 2 +- src/ahriman/version.py | 2 +- tests/ahriman/core/upload/test_s3.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/archlinux/PKGBUILD b/package/archlinux/PKGBUILD index ccb1760e..50e7358b 100644 --- a/package/archlinux/PKGBUILD +++ b/package/archlinux/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Evgeniy Alekseev pkgname='ahriman' -pkgver=1.2.5 +pkgver=1.2.6 pkgrel=1 pkgdesc="ArcHlinux ReposItory MANager" arch=('any') diff --git a/src/ahriman/core/upload/s3.py b/src/ahriman/core/upload/s3.py index 59252c66..2b337435 100644 --- a/src/ahriman/core/upload/s3.py +++ b/src/ahriman/core/upload/s3.py @@ -148,6 +148,6 @@ class S3(Upload): local_path = path / local_file remote_path = Path(self.architecture) / local_file (mime, _) = mimetypes.guess_type(local_path) - extra_args = {"Content-Type": mime} if mime is not None else None + extra_args = {"ContentType": mime} if mime is not None else None self.bucket.upload_file(Filename=str(local_path), Key=str(remote_path), ExtraArgs=extra_args) diff --git a/src/ahriman/version.py b/src/ahriman/version.py index 78a2449a..ac7fb522 100644 --- a/src/ahriman/version.py +++ b/src/ahriman/version.py @@ -17,4 +17,4 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -__version__ = "1.2.5" +__version__ = "1.2.6" diff --git a/tests/ahriman/core/upload/test_s3.py b/tests/ahriman/core/upload/test_s3.py index cbbc4de5..4eae1d44 100644 --- a/tests/ahriman/core/upload/test_s3.py +++ b/tests/ahriman/core/upload/test_s3.py @@ -122,7 +122,7 @@ def test_upload_files(s3: S3, s3_remote_objects: List[Any], mocker: MockerFixtur mock.call( Filename=str(root / s3.architecture / "b"), Key=f"{s3.architecture}/{s3.architecture}/b", - ExtraArgs={"Content-Type": "text/html"}), + ExtraArgs={"ContentType": "text/html"}), mock.call( Filename=str(root / s3.architecture / "d"), Key=f"{s3.architecture}/{s3.architecture}/d",