diff --git a/src/python/createrepo_c/__init__.py b/src/python/createrepo_c/__init__.py index 2a838ba2..5f91f3d2 100644 --- a/src/python/createrepo_c/__init__.py +++ b/src/python/createrepo_c/__init__.py @@ -398,7 +398,7 @@ def __init__(self, destination, num_packages=None, unique_md_filenames=True, - changelog_limit=None, + changelog_limit=10, preserve_existing_metadata=False, compression=ZSTD_COMPRESSION, checksum_type=SHA256, @@ -521,8 +521,9 @@ def add_pkg_from_file(self, path): pkg = package_from_rpm( path, - location_href=str(relative_path), checksum_type=self._checksum_type, + location_href=str(relative_path), + location_base=None, changelog_limit=self._changelog_limit )