Release 1.2.6

This commit is contained in:
Evgenii Alekseev 2021-08-21 16:19:21 +03:00
parent a5455b697d
commit 9d2a3bcbc1
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Evgeniy Alekseev # Maintainer: Evgeniy Alekseev
pkgname='ahriman' pkgname='ahriman'
pkgver=1.2.5 pkgver=1.2.6
pkgrel=1 pkgrel=1
pkgdesc="ArcHlinux ReposItory MANager" pkgdesc="ArcHlinux ReposItory MANager"
arch=('any') arch=('any')

View File

@ -148,6 +148,6 @@ class S3(Upload):
local_path = path / local_file local_path = path / local_file
remote_path = Path(self.architecture) / local_file remote_path = Path(self.architecture) / local_file
(mime, _) = mimetypes.guess_type(local_path) (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) self.bucket.upload_file(Filename=str(local_path), Key=str(remote_path), ExtraArgs=extra_args)

View File

@ -17,4 +17,4 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
__version__ = "1.2.5" __version__ = "1.2.6"

View File

@ -122,7 +122,7 @@ def test_upload_files(s3: S3, s3_remote_objects: List[Any], mocker: MockerFixtur
mock.call( mock.call(
Filename=str(root / s3.architecture / "b"), Filename=str(root / s3.architecture / "b"),
Key=f"{s3.architecture}/{s3.architecture}/b", Key=f"{s3.architecture}/{s3.architecture}/b",
ExtraArgs={"Content-Type": "text/html"}), ExtraArgs={"ContentType": "text/html"}),
mock.call( mock.call(
Filename=str(root / s3.architecture / "d"), Filename=str(root / s3.architecture / "d"),
Key=f"{s3.architecture}/{s3.architecture}/d", Key=f"{s3.architecture}/{s3.architecture}/d",