From 184ce720f46f47a1a676c95852d63afa21558d7d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 24 Nov 2021 12:02:12 -0300 Subject: [PATCH] [appimage] refactoring: CONFIG_DIR constant renamed to APPIMAGE_CONFIG_DIR --- bauh/gems/appimage/__init__.py | 4 ++-- bauh/gems/appimage/controller.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bauh/gems/appimage/__init__.py b/bauh/gems/appimage/__init__.py index 9534da76..f2d6a467 100644 --- a/bauh/gems/appimage/__init__.py +++ b/bauh/gems/appimage/__init__.py @@ -10,8 +10,8 @@ LOCAL_PATH = '{}/.local/share/bauh/appimage'.format(str(Path.home())) INSTALLATION_PATH = LOCAL_PATH + '/installed/' SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/suggestions.txt' CONFIG_FILE = f'{CONFIG_PATH}/appimage.yml' -CONFIG_DIR = f'{CONFIG_PATH}/appimage' -UPDATES_IGNORED_FILE = '{}/updates_ignored.txt'.format(CONFIG_DIR) +APPIMAGE_CONFIG_DIR = f'{CONFIG_PATH}/appimage' +UPDATES_IGNORED_FILE = f'{APPIMAGE_CONFIG_DIR}/updates_ignored.txt' SYMLINKS_DIR = '{}/.local/bin'.format(str(Path.home())) URL_COMPRESSED_DATABASES = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/dbs.tar.gz' APPIMAGE_CACHE_PATH = f'{CACHE_PATH}/appimage' diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index a8ea581a..ba4e6e37 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -28,7 +28,7 @@ from bauh.commons.boot import CreateConfigFile from bauh.commons.html import bold from bauh.commons.system import SystemProcess, new_subprocess, ProcessHandler, run_cmd, SimpleProcess from bauh.gems.appimage import query, INSTALLATION_PATH, LOCAL_PATH, ROOT_DIR, \ - CONFIG_DIR, UPDATES_IGNORED_FILE, util, get_default_manual_installation_file_dir, DATABASE_APPS_FILE, \ + APPIMAGE_CONFIG_DIR, UPDATES_IGNORED_FILE, util, get_default_manual_installation_file_dir, DATABASE_APPS_FILE, \ DATABASE_RELEASES_FILE, DESKTOP_ENTRIES_PATH, APPIMAGE_CACHE_PATH, get_icon_path, DOWNLOAD_DIR from bauh.gems.appimage.config import AppImageConfigManager from bauh.gems.appimage.model import AppImage @@ -903,7 +903,7 @@ class AppImageManager(SoftwareManager): pkg.updates_ignored = True def _write_ignored_updates(self, names: Set[str]): - Path(CONFIG_DIR).mkdir(parents=True, exist_ok=True) + Path(APPIMAGE_CONFIG_DIR).mkdir(parents=True, exist_ok=True) ignored_list = [*names] ignored_list.sort()