From b36c3f66a68b52ff38d4428d9a9683c7b4a285de Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 6 Oct 2023 22:32:45 +0200 Subject: [PATCH] conf: print warning that rust2rpm.conf file format is deprecated --- rust2rpm/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust2rpm/conf.py b/rust2rpm/conf.py index 94df32b..9b4905b 100644 --- a/rust2rpm/conf.py +++ b/rust2rpm/conf.py @@ -552,6 +552,12 @@ def load_config(features: set[str], target: str) -> TomlConf: log.error(str(exc)) sys.exit(1) + log.warn( + "The rust2rpm.conf file format is deprecated and support for it will " + + "be removed in a future release of rust2rpm. Please migrate settings " + + "to the new TOML based format (rust2rpm.toml)." + ) + tomlconf = TomlConf.from_conf(distconf) return tomlconf