conf: validate that "package.extra-sources.{number,file}" are present
This commit is contained in:
parent
0db4651516
commit
2961950b31
2 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ __all__ = ["licensing"]
|
||||||
# release of the last minor version.
|
# release of the last minor version.
|
||||||
#
|
#
|
||||||
# Only the major version is included in the header of generated spec files.
|
# Only the major version is included in the header of generated spec files.
|
||||||
__version__ = "25.1.0"
|
__version__ = "26.0.0"
|
||||||
|
|
||||||
TARGET_ARCHES = [
|
TARGET_ARCHES = [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
|
|
|
@ -65,6 +65,7 @@ TOML_SCHEMA = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"additionalProperties": False,
|
"additionalProperties": False,
|
||||||
|
"required": ["file", "number"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# additional packaged files
|
# additional packaged files
|
||||||
|
@ -457,7 +458,7 @@ class Source:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def comments(self) -> list[str]:
|
def comments(self) -> list[str]:
|
||||||
return self._data["comments"]
|
return self._data.get("comments") or list()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def whitespace(self) -> str:
|
def whitespace(self) -> str:
|
||||||
|
|
Loading…
Reference in a new issue