crate: fix sorting of license and doc files

This commit is contained in:
Fabio Valentini 2023-02-15 18:21:31 +01:00
parent f81e885df9
commit 7e969ffbb3
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF
2 changed files with 6 additions and 2 deletions

View file

@ -5,10 +5,12 @@ from rust2rpm import licensing
# - Increment major version if rendered spec files have changed
# (for example, because of changes to the template).
# - Increment only the minor version if spec file rendering is unchanged since
# the release of the last major version.
# the release of the last major version, but new features were added.
# - Increment only the patch version if there were only bug fixes since the
# release of the last minor version.
#
# Only the major version is included in the header of generated spec files.
__version__ = "24.0-pre"
__version__ = "24.0.0-pre"
TARGET_ARCHES = [
"x86_64",

View file

@ -112,6 +112,7 @@ def get_license_files(path: str) -> list[str]:
if LICENSE_FILE_PATTERN.match(f):
results.append(os.path.relpath(os.path.join(root, f), path))
results.sort()
return results
@ -130,6 +131,7 @@ def get_doc_files(path: str) -> list[str]:
):
results.append(os.path.relpath(os.path.join(root, f), path))
results.sort()
return results