From e3c2ef7ddae9bd5ab956d58ff3f8f8a224b26c86 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 3 Apr 2023 00:05:21 +0200 Subject: [PATCH] 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. --- rust2rpm/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust2rpm/conf.py b/rust2rpm/conf.py index c1a249e..d4d4ce2 100644 --- a/rust2rpm/conf.py +++ b/rust2rpm/conf.py @@ -97,6 +97,8 @@ class Rust2RpmConf: ] for feature in features: valid_keys.append(f"lib+{feature}.requires") + if "default" not in features: + valid_keys.append(f"lib+default.requires") # check section names for section in conf.keys():