conf: validate that "package.extra-sources.{number,file}" are present

This commit is contained in:
Fabio Valentini 2024-02-23 00:46:30 +01:00
parent 0db4651516
commit 2961950b31
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ __all__ = ["licensing"]
# release of the last minor version.
#
# Only the major version is included in the header of generated spec files.
__version__ = "25.1.0"
__version__ = "26.0.0"
TARGET_ARCHES = [
"x86_64",

View file

@ -65,6 +65,7 @@ TOML_SCHEMA = {
},
},
"additionalProperties": False,
"required": ["file", "number"],
},
},
# additional packaged files
@ -457,7 +458,7 @@ class Source:
@property
def comments(self) -> list[str]:
return self._data["comments"]
return self._data.get("comments") or list()
@property
def whitespace(self) -> str: