From 2843fe615794dbe1e5b9df3029698205db46659b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Fr=C3=B6hner?= Date: Tue, 8 Oct 2024 11:14:04 +0200 Subject: [PATCH] Issue #326 Convert all xattr strings to lower case to be compatible to Amazon S3 buckets. --- librepo/downloader.c | 2 +- librepo/xattr_internal.h | 2 +- tests/python/tests/test_yum_package_downloading.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/librepo/downloader.c b/librepo/downloader.c index 5b610632..78f6e4de 100644 --- a/librepo/downloader.c +++ b/librepo/downloader.c @@ -974,7 +974,7 @@ select_next_target(LrDownload *dd, } -#define XATTR_LIBREPO "user.Librepo.DownloadInProgress" +#define XATTR_LIBREPO "user.librepo.downloadinprogress" /** Add an extended attribute that indicates that * the file is being/was downloaded by Librepo diff --git a/librepo/xattr_internal.h b/librepo/xattr_internal.h index e2c66b37..9dded7bf 100644 --- a/librepo/xattr_internal.h +++ b/librepo/xattr_internal.h @@ -21,7 +21,7 @@ #ifndef __LR_XATTR_INTERNAL_H__ #define __LR_XATTR_INTERNAL_H__ -#define XATTR_CHKSUM_PREFIX "user.Librepo.checksum." +#define XATTR_CHKSUM_PREFIX "user.librepo.checksum." #define XATTR_CHKSUM_MTIME XATTR_CHKSUM_PREFIX "mtime" #if __APPLE__ diff --git a/tests/python/tests/test_yum_package_downloading.py b/tests/python/tests/test_yum_package_downloading.py index 0364be05..ad5fc318 100644 --- a/tests/python/tests/test_yum_package_downloading.py +++ b/tests/python/tests/test_yum_package_downloading.py @@ -755,7 +755,7 @@ def test_download_packages_with_resume_02(self): # Otherwise librepo refuse to resume try: xattr.setxattr(fn, - "user.Librepo.DownloadInProgress".encode("utf-8"), + "user.librepo.downloadinprogress".encode("utf-8"), "".encode("utf-8")) except IOError as err: if err.errno == 95: