Skip to content

Commit

Permalink
Issue #326
Browse files Browse the repository at this point in the history
Convert all xattr strings to lower case to be compatible to Amazon S3 buckets.
  • Loading branch information
crazymind1337 authored and m-blaha committed Oct 9, 2024
1 parent 1be8931 commit f8b0b59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion librepo/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion librepo/xattr_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion tests/python/tests/test_yum_package_downloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f8b0b59

Please sign in to comment.