conf: print warning that rust2rpm.conf file format is deprecated

This commit is contained in:
Fabio Valentini 2023-10-06 22:32:45 +02:00
parent 722ace88d5
commit b36c3f66a6
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -552,6 +552,12 @@ def load_config(features: set[str], target: str) -> TomlConf:
log.error(str(exc)) log.error(str(exc))
sys.exit(1) 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) tomlconf = TomlConf.from_conf(distconf)
return tomlconf return tomlconf