mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[arch.__init__] refactoring: replacing 'bauh' string by constant
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
from bauh import __app_name__
|
||||||
from bauh.api.paths import CONFIG_DIR, TEMP_DIR, CACHE_DIR
|
from bauh.api.paths import CONFIG_DIR, TEMP_DIR, CACHE_DIR
|
||||||
from bauh.commons import resource
|
from bauh.commons import resource
|
||||||
|
|
||||||
@@ -7,14 +8,14 @@ ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|||||||
BUILD_DIR = f'{TEMP_DIR}/arch'
|
BUILD_DIR = f'{TEMP_DIR}/arch'
|
||||||
ARCH_CACHE_DIR = f'{CACHE_DIR}/arch'
|
ARCH_CACHE_DIR = f'{CACHE_DIR}/arch'
|
||||||
CATEGORIES_FILE_PATH = f'{ARCH_CACHE_DIR}/categories.txt'
|
CATEGORIES_FILE_PATH = f'{ARCH_CACHE_DIR}/categories.txt'
|
||||||
URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/categories.txt'
|
URL_CATEGORIES_FILE = f'https://raw.githubusercontent.com/vinifmor/{__app_name__}-files/master/arch/categories.txt'
|
||||||
URL_GPG_SERVERS = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/gpgservers.txt'
|
URL_GPG_SERVERS = f'https://raw.githubusercontent.com/vinifmor/{__app_name__}-files/master/arch/gpgservers.txt'
|
||||||
ARCH_CONFIG_DIR = f'{CONFIG_DIR}/arch'
|
ARCH_CONFIG_DIR = f'{CONFIG_DIR}/arch'
|
||||||
CUSTOM_MAKEPKG_FILE = f'{ARCH_CONFIG_DIR}/makepkg.conf'
|
CUSTOM_MAKEPKG_FILE = f'{ARCH_CONFIG_DIR}/makepkg.conf'
|
||||||
AUR_INDEX_FILE = f'{ARCH_CACHE_DIR}/aur/index.txt'
|
AUR_INDEX_FILE = f'{ARCH_CACHE_DIR}/aur/index.txt'
|
||||||
AUR_INDEX_TS_FILE = f'{ARCH_CACHE_DIR}/aur/index.ts'
|
AUR_INDEX_TS_FILE = f'{ARCH_CACHE_DIR}/aur/index.ts'
|
||||||
CONFIG_FILE = f'{CONFIG_DIR}/arch.yml'
|
CONFIG_FILE = f'{CONFIG_DIR}/arch.yml'
|
||||||
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/aur_suggestions.txt'
|
SUGGESTIONS_FILE = f'https://raw.githubusercontent.com/vinifmor/{__app_name__}-files/master/arch/aur_suggestions.txt'
|
||||||
UPDATES_IGNORED_FILE = f'{ARCH_CONFIG_DIR}/updates_ignored.txt'
|
UPDATES_IGNORED_FILE = f'{ARCH_CONFIG_DIR}/updates_ignored.txt'
|
||||||
EDITABLE_PKGBUILDS_FILE = f'{ARCH_CONFIG_DIR}/aur/editable_pkgbuilds.txt'
|
EDITABLE_PKGBUILDS_FILE = f'{ARCH_CONFIG_DIR}/aur/editable_pkgbuilds.txt'
|
||||||
IGNORED_REBUILD_CHECK_FILE = f'{ARCH_CONFIG_DIR}/aur/ignored_rebuild_check.txt'
|
IGNORED_REBUILD_CHECK_FILE = f'{ARCH_CONFIG_DIR}/aur/ignored_rebuild_check.txt'
|
||||||
|
|||||||
Reference in New Issue
Block a user