[arch] refactoring: ARCH_CACHE_PATH renamed to ARCH_CACHE_DIR

This commit is contained in:
Vinicius Moreira
2021-11-25 16:14:07 -03:00
parent 9bfecc5131
commit 29df4b4f1b
3 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ from typing import List, Set, Optional
from bauh.api.abstract.model import SoftwarePackage, CustomSoftwareAction
from bauh.commons import resource
from bauh.gems.arch import ROOT_DIR, ARCH_CACHE_PATH
from bauh.gems.arch import ROOT_DIR, ARCH_CACHE_DIR
from bauh.view.util.translation import I18n
CACHED_ATTRS = {'command', 'icon_path', 'repository', 'maintainer', 'desktop_entry', 'categories', 'last_modified', 'commit'}
@@ -85,7 +85,7 @@ class ArchPackage(SoftwarePackage):
@staticmethod
def disk_cache_path(pkgname: str):
return f'{ARCH_CACHE_PATH}/installed/{pkgname}'
return f'{ARCH_CACHE_DIR}/installed/{pkgname}'
def get_pkg_build_url(self):
if self.package_base: