mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Updated for coding style
This commit is contained in:
parent
d1a965ddb2
commit
32d48dd5eb
1 changed files with 6 additions and 6 deletions
|
@ -11,16 +11,16 @@ from slpkg.configs import Configs
|
|||
|
||||
@dataclass
|
||||
class Repositories:
|
||||
config = Configs
|
||||
color = config.colour()
|
||||
configs = Configs
|
||||
color = configs.colour()
|
||||
bold: str = color['bold']
|
||||
red: str = color['red']
|
||||
cyan: str = color['cyan']
|
||||
endc: str = color['endc']
|
||||
bred: str = f'{bold}{red}'
|
||||
|
||||
repositories_file_toml = Path(config.etc_path, 'repositories.toml')
|
||||
repositories_path: Path = Path(config.lib_path, 'repositories')
|
||||
repositories_file_toml = Path(configs.etc_path, 'repositories.toml')
|
||||
repositories_path: Path = Path(configs.lib_path, 'repositories')
|
||||
|
||||
repos_config = {}
|
||||
repositories = {}
|
||||
|
@ -358,9 +358,9 @@ class Repositories:
|
|||
slint_repo_tag: str = repos_config['SLINT_REPO_TAG']
|
||||
|
||||
except (tomli.TOMLDecodeError, KeyError) as error:
|
||||
raise SystemExit(f'\n{config.prog_name} {bred}Error{endc}: {error}: in the configuration file '
|
||||
raise SystemExit(f'\n{configs.prog_name} {bred}Error{endc}: {error}: in the configuration file '
|
||||
f"'{repositories_file_toml}'.\n"
|
||||
f"\nIf you have upgraded the '{config.prog_name}' probably you need to run:\n"
|
||||
f"\nIf you have upgraded the '{configs.prog_name}' probably you need to run:\n"
|
||||
f"'mv {repositories_file_toml}.new {repositories_file_toml}'.\n"
|
||||
f"or '{cyan}slpkg_new-configs{endc}' command.\n")
|
||||
|
||||
|
|
Loading…
Reference in a new issue