[SOLVED] PuTTY packages and overly broad uninstallation
Published: April 30, 2025 - 12:01
Good morning,
The PuTTY package uses the following code during installation to uninstall older versions:
However, other products have the name PuTTY in their names.
This implies the unwanted uninstallation of other software.
I suggest you use the following code which checks the editor to avoid any problems:
Good day
The PuTTY package uses the following code during installation to uninstall older versions:
Code: Select all
for to_uninstall in installed_softwares(name="PuTTY "):
if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
This implies the unwanted uninstallation of other software.
I suggest you use the following code which checks the editor to avoid any problems:
Code: Select all
for to_uninstall in installed_softwares(name="PuTTY "):
if to_uninstall["publisher"]=="Simon Tatham" and (Version(to_uninstall["version"]) < Version(control.get_software_version()) or force):Good day