Runtime BR's are implicitly required

This commit is contained in:
Karolina Surma
2021-09-13 08:20:12 +02:00
parent dbca600ac1
commit 5a67bce75e
10 changed files with 9 additions and 22 deletions
+5 -6
View File
@@ -10,19 +10,18 @@ TEMPLATE_PATH = Path().resolve(__file__) / 'template.spec'
def generate_extra_build_requires(config):
"""If defined in config file, return extra build requires.
If none were defined, return an empty string."""
If none were defined, return `-r` - runtime extra BRs`."""
# TODO: This doesn't handle doubles like -xr
# TODO: custom tox env (-e)
options = {
"test": "-t",
"runtime": "-r",
"tox": "-t",
"extra": "-x",
}
extra_brs = config.get_list("extra_build_requires")
# No extra BuildRequires were defined - return empty string
# No extra BuildRequires were defined - return `-r` = runtime
if not extra_brs:
return ""
return "-r"
generated_brs = []
add = generated_brs.append