fix: snap and arch categories mapping when nothing is retrieved from the cloud

This commit is contained in:
Vinicius Moreira
2019-10-14 17:51:44 -03:00
parent fd4df6d902
commit 7d94db740e
3 changed files with 14 additions and 15 deletions

View File

@@ -143,7 +143,10 @@ class SnapManager(SoftwareManager):
return ProcessHandler(watcher).handle(SystemProcess(subproc=snap.refresh_and_stream(pkg.name, root_password)))
def prepare(self):
self.categories = self.categories_downloader.get_categories()
categories = self.categories_downloader.get_categories()
if categories:
self.categories = categories
def list_updates(self, internet_available: bool) -> List[PackageUpdate]:
pass