Reinstall a package scheduled for removal before attempting to dl and install

Contributes to CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-16 10:08:24 +01:00
parent 951c0234d6
commit 447e0443a2
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -273,7 +273,8 @@ class PackageList(ListModel):
:param package_id: the package identification string :param package_id: the package identification string
""" """
self.download(package_id, url, False) if not self._package_manager.reinstallPackage(package_id):
self.download(package_id, url, False)
def uninstallPackage(self, package_id: str) -> None: def uninstallPackage(self, package_id: str) -> None:
"""Uninstall a package from the Marketplace """Uninstall a package from the Marketplace