mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[appimage] refactoring: CONFIG_DIR constant renamed to APPIMAGE_CONFIG_DIR
This commit is contained in:
@@ -10,8 +10,8 @@ LOCAL_PATH = '{}/.local/share/bauh/appimage'.format(str(Path.home()))
|
|||||||
INSTALLATION_PATH = LOCAL_PATH + '/installed/'
|
INSTALLATION_PATH = LOCAL_PATH + '/installed/'
|
||||||
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/suggestions.txt'
|
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/suggestions.txt'
|
||||||
CONFIG_FILE = f'{CONFIG_PATH}/appimage.yml'
|
CONFIG_FILE = f'{CONFIG_PATH}/appimage.yml'
|
||||||
CONFIG_DIR = f'{CONFIG_PATH}/appimage'
|
APPIMAGE_CONFIG_DIR = f'{CONFIG_PATH}/appimage'
|
||||||
UPDATES_IGNORED_FILE = '{}/updates_ignored.txt'.format(CONFIG_DIR)
|
UPDATES_IGNORED_FILE = f'{APPIMAGE_CONFIG_DIR}/updates_ignored.txt'
|
||||||
SYMLINKS_DIR = '{}/.local/bin'.format(str(Path.home()))
|
SYMLINKS_DIR = '{}/.local/bin'.format(str(Path.home()))
|
||||||
URL_COMPRESSED_DATABASES = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/dbs.tar.gz'
|
URL_COMPRESSED_DATABASES = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/appimage/dbs.tar.gz'
|
||||||
APPIMAGE_CACHE_PATH = f'{CACHE_PATH}/appimage'
|
APPIMAGE_CACHE_PATH = f'{CACHE_PATH}/appimage'
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ from bauh.commons.boot import CreateConfigFile
|
|||||||
from bauh.commons.html import bold
|
from bauh.commons.html import bold
|
||||||
from bauh.commons.system import SystemProcess, new_subprocess, ProcessHandler, run_cmd, SimpleProcess
|
from bauh.commons.system import SystemProcess, new_subprocess, ProcessHandler, run_cmd, SimpleProcess
|
||||||
from bauh.gems.appimage import query, INSTALLATION_PATH, LOCAL_PATH, ROOT_DIR, \
|
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
|
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.config import AppImageConfigManager
|
||||||
from bauh.gems.appimage.model import AppImage
|
from bauh.gems.appimage.model import AppImage
|
||||||
@@ -903,7 +903,7 @@ class AppImageManager(SoftwareManager):
|
|||||||
pkg.updates_ignored = True
|
pkg.updates_ignored = True
|
||||||
|
|
||||||
def _write_ignored_updates(self, names: Set[str]):
|
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 = [*names]
|
||||||
ignored_list.sort()
|
ignored_list.sort()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user