conf: only print rust2rpm.conf deprecation warning if file is present
This commit is contained in:
parent
b36c3f66a6
commit
8525474cda
1 changed files with 6 additions and 5 deletions
|
@ -552,11 +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(
|
if distconf.conf_file:
|
||||||
"The rust2rpm.conf file format is deprecated and support for it will "
|
log.warn(
|
||||||
+ "be removed in a future release of rust2rpm. Please migrate settings "
|
"The rust2rpm.conf file format is deprecated and support for it will "
|
||||||
+ "to the new TOML based format (rust2rpm.toml)."
|
+ "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
|
||||||
|
|
Loading…
Reference in a new issue