generator: fix application of lib+feature.requires rust2rpm.conf settings

This commit is contained in:
Fabio Valentini 2023-02-16 16:49:20 +01:00
parent 8ca9320328
commit 092de1b186
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -166,7 +166,7 @@ def spec_render_crate(
conf_key = "lib"
else:
conf_key = f"lib+{feature}"
conf_lib_requires[conf_key] = to_list(distconf.get(conf_key))
conf_lib_requires[conf_key] = to_list(distconf.get(f"{conf_key}.requires"))
conf_unwanted_features = to_list(distconf.get("unwanted-features"))
for feature in conf_unwanted_features: