From 092de1b186f9936adedb67f1b0d07ff76ca96e73 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 16 Feb 2023 16:49:20 +0100 Subject: [PATCH] generator: fix application of lib+feature.requires rust2rpm.conf settings --- rust2rpm/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/generator.py b/rust2rpm/generator.py index f5dbead..697b6cc 100644 --- a/rust2rpm/generator.py +++ b/rust2rpm/generator.py @@ -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: