generator: fix condition for setting cargo_install_bin for compat packages
This commit is contained in:
parent
2961950b31
commit
b9550775b3
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ def spec_render_crate(
|
|||
is_cdylib = metadata.is_cdylib()
|
||||
|
||||
cargo_install_lib = (tomlconf.package_cargo_install_lib is not False) and (vendor_tarball is None)
|
||||
cargo_install_bin = (tomlconf.package_cargo_install_bin is not False) and (not compat)
|
||||
cargo_install_bin = (tomlconf.package_cargo_install_bin is not False) and (not compat if is_bin else True)
|
||||
|
||||
if tomlconf.package_bin_package_name is None:
|
||||
bin_name = "%{crate}"
|
||||
|
|
Loading…
Reference in a new issue