conf: fix subtle bug in rust2rpm.conf validation
The "default" feature is always implicitly defined, even if not explicitly listed in the crate metadata, so it's always valid.
This commit is contained in:
parent
1fdcc4a2a0
commit
e3c2ef7dda
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ class Rust2RpmConf:
|
||||||
]
|
]
|
||||||
for feature in features:
|
for feature in features:
|
||||||
valid_keys.append(f"lib+{feature}.requires")
|
valid_keys.append(f"lib+{feature}.requires")
|
||||||
|
if "default" not in features:
|
||||||
|
valid_keys.append(f"lib+default.requires")
|
||||||
|
|
||||||
# check section names
|
# check section names
|
||||||
for section in conf.keys():
|
for section in conf.keys():
|
||||||
|
|
Loading…
Reference in a new issue