patching: log warning when rust2rpm-helper is not in PATH
This commit is contained in:
parent
445feba9ee
commit
607ffb50e6
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ def preprocess_cargo_toml(contents: str, features: set[str]) -> Optional[str]:
|
|||
if shutil.which("rust2rpm-helper"):
|
||||
return preprocess_cargo_toml_helper(contents)
|
||||
else:
|
||||
log.warn(
|
||||
"Falling back to broken built-in implementation for stripping non-applicable "
|
||||
+ "target-specific depdendencies: rust2rpm-helper is not installed"
|
||||
)
|
||||
return preprocess_cargo_toml_fallback(contents, features)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue