Unsubscribe from package when a license is declined (cloud flow)

CURA-6984
This commit is contained in:
Nino van Hooff 2020-01-17 11:10:29 +01:00
parent 0e5654e44b
commit 4e8534b93b
3 changed files with 14 additions and 2 deletions

View file

@ -83,8 +83,7 @@ class SyncOrchestrator(Extension):
self._cloud_package_manager.subscribe(item["package_id"])
has_changes = True
else:
# todo unsubscribe declined packages
pass
self._cloud_package_manager.unsubscribe(item["package_id"])
# delete temp file
os.remove(item["package_path"])