[flatpak] refactoring: CONFIG_DIR constant renamed to FLATPAK_CONFIG_DIR

This commit is contained in:
Vinicius Moreira
2021-11-24 11:58:52 -03:00
parent a1683b6a7d
commit cae69c5ba2
2 changed files with 4 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/flatpak/suggestions.txt'
CONFIG_FILE = f'{CONFIG_PATH}/flatpak.yml'
CONFIG_DIR = f'{CONFIG_PATH}/flatpak'
UPDATES_IGNORED_FILE = f'{CONFIG_DIR}/updates_ignored.txt'
FLATPAK_CONFIG_DIR = f'{CONFIG_PATH}/flatpak'
UPDATES_IGNORED_FILE = f'{FLATPAK_CONFIG_DIR}/updates_ignored.txt'
EXPORTS_PATH = '{}/.local/share/flatpak/exports/share'.format(str(Path.home()))
VERSION_1_2 = parse_version('1.2')
VERSION_1_3 = parse_version('1.3')

View File

@@ -21,7 +21,7 @@ from bauh.api import user
from bauh.commons.boot import CreateConfigFile
from bauh.commons.html import strip_html, bold
from bauh.commons.system import ProcessHandler
from bauh.gems.flatpak import flatpak, SUGGESTIONS_FILE, CONFIG_FILE, UPDATES_IGNORED_FILE, CONFIG_DIR, EXPORTS_PATH, \
from bauh.gems.flatpak import flatpak, SUGGESTIONS_FILE, CONFIG_FILE, UPDATES_IGNORED_FILE, FLATPAK_CONFIG_DIR, EXPORTS_PATH, \
get_icon_path, VERSION_1_5, VERSION_1_2
from bauh.gems.flatpak.config import FlatpakConfigManager
from bauh.gems.flatpak.constants import FLATHUB_API_URL
@@ -689,7 +689,7 @@ class FlatpakManager(SoftwareManager):
return ignored
def _write_ignored_updates(self, keys: Set[str]):
Path(CONFIG_DIR).mkdir(parents=True, exist_ok=True)
Path(FLATPAK_CONFIG_DIR).mkdir(parents=True, exist_ok=True)
ignored_list = [*keys]
ignored_list.sort()