conf: only print rust2rpm.conf deprecation warning if file is present

This commit is contained in:
Fabio Valentini 2023-10-07 14:43:31 +02:00
parent b36c3f66a6
commit 8525474cda
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -552,6 +552,7 @@ def load_config(features: set[str], target: str) -> TomlConf:
log.error(str(exc)) log.error(str(exc))
sys.exit(1) sys.exit(1)
if distconf.conf_file:
log.warn( log.warn(
"The rust2rpm.conf file format is deprecated and support for it will " "The rust2rpm.conf file format is deprecated and support for it will "
+ "be removed in a future release of rust2rpm. Please migrate settings " + "be removed in a future release of rust2rpm. Please migrate settings "