fix: disk cache keeps enabled even with --disk-cache=0 | improving snaps launching | arch gem label as 'AUR' for now

This commit is contained in:
Vinicius Moreira
2019-09-19 18:04:04 -03:00
parent c8417b5315
commit 446463bddb
11 changed files with 52 additions and 16 deletions

View File

@@ -160,7 +160,7 @@ class SoftwareManager(ABC):
:param only_icon: if only the icon should be saved
:return:
"""
if pkg.supports_disk_cache():
if self.context.disk_cache and pkg.supports_disk_cache():
if not only_icon:
Path(pkg.get_disk_cache_path()).mkdir(parents=True, exist_ok=True)