diff --git a/ChangeLog.txt b/ChangeLog.txt index ac19f982..86f36bd5 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -2,12 +2,15 @@ ### 5.0.0 - 17/03/2024 - Updated: + * Blacklist using regex pattern + * Move command check-updates to option --check + +- Removed: * Remove SQLAlchemy dependency * Remove help command, instead use manpage * Remove clean-logs and clean-data commands - * remove rules.toml config file - * Blacklist using regex pattern - * Move command check-updates to option --check + * Remove rules.toml config file + * Remove --install-data option - Added: * Check for upgrade packages using the option --check diff --git a/slpkg/main.py b/slpkg/main.py index 7a8b51f8..ba3b811b 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -57,8 +57,6 @@ class Menu(Configs): self.flag_short_reinstall: str = '-r' self.flag_skip_installed: str = '--skip-installed' self.flag_short_skip_installed: str = '-k' - self.flag_install_data: str = '--install-data' - self.flag_short_install_data: str = '-a' self.flag_full_reverse: str = '--full-reverse' self.flag_short_full_reverse: str = '-E' self.flag_search: str = '--search' @@ -99,8 +97,6 @@ class Menu(Configs): self.flag_short_reinstall, self.flag_skip_installed, self.flag_short_skip_installed, - self.flag_install_data, - self.flag_short_install_data, self.flag_full_reverse, self.flag_short_full_reverse, self.flag_search, @@ -128,8 +124,6 @@ class Menu(Configs): self.flag_short_yes, self.flag_check, self.flag_short_check, - self.flag_install_data, - self.flag_short_install_data, self.flag_repository, self.flag_short_repository, self.flag_parallel, diff --git a/slpkg/update_repositories.py b/slpkg/update_repositories.py index 2366f1fc..e30ce8db 100644 --- a/slpkg/update_repositories.py +++ b/slpkg/update_repositories.py @@ -41,9 +41,6 @@ class UpdateRepositories(Configs): self.option_for_repository: bool = self.utils.is_option( ('-o', '--repository='), flags) - self.option_for_install_data: bool = self.utils.is_option( - ('-a', '--install-data'), flags) - def update_the_repositories(self) -> None: if not any(list(self.repos_for_update.values())): self.view.question() @@ -76,14 +73,12 @@ class UpdateRepositories(Configs): } if self.option_for_repository: - if not self.option_for_install_data: - self.view_downloading_message(self.repository) + self.view_downloading_message(self.repository) repositories[self.repository]() else: for repo, update in self.repos_for_update.items(): if update: - if not self.option_for_install_data: - self.view_downloading_message(repo) + self.view_downloading_message(repo) repositories[repo]() print() @@ -91,540 +86,521 @@ class UpdateRepositories(Configs): print(f"\nSyncing with the repository '{self.green}{repo}{self.endc}', please wait...\n") def slack_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slack_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slack_repo_path) - self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_packages) - self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_packages) + self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slack_repo_path, self.repos.slack_repo_checksums) - if self.repos.slack_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.slack_repo_mirror[0]} ' - f'{self.repos.slack_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_changelog}' - packages: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_packages}' - checksums: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_checksums}' + if self.repos.slack_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.slack_repo_mirror[0]} ' + f'{self.repos.slack_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_changelog}' + packages: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_packages}' + checksums: str = f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_checksums}' - urls[self.repos.slack_repo_name] = ((changelog, packages, checksums), self.repos.slack_repo_path) + urls[self.repos.slack_repo_name] = ((changelog, packages, checksums), self.repos.slack_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slack_data() def slack_extra_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slack_extra_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slack_extra_repo_path) - self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_packages) - self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_packages) + self.utils.remove_file_if_exists(self.repos.slack_extra_repo_path, self.repos.slack_extra_repo_checksums) - changelog: str = f'{self.repos.slack_extra_repo_mirror[0]}{self.repos.slack_extra_repo_changelog}' + changelog: str = f'{self.repos.slack_extra_repo_mirror[0]}{self.repos.slack_extra_repo_changelog}' - if self.repos.slack_extra_repo_local[0].startswith('file'): - urls[self.repos.slack_extra_repo_name] = ((changelog,), self.repos.slack_extra_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_extra_repo_mirror)} ' - f'{self.repos.slack_extra_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_packages}' - checksums: str = f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_checksums}' - urls[self.repos.slack_extra_repo_name] = ((changelog, packages, checksums), - self.repos.slack_extra_repo_path) + if self.repos.slack_extra_repo_local[0].startswith('file'): + urls[self.repos.slack_extra_repo_name] = ((changelog,), self.repos.slack_extra_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_extra_repo_mirror)} ' + f'{self.repos.slack_extra_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_packages}' + checksums: str = f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_checksums}' + urls[self.repos.slack_extra_repo_name] = ((changelog, packages, checksums), + self.repos.slack_extra_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slack_extra_data() def slack_patches_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slack_patches_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slack_patches_repo_path) - self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, - self.repos.slack_patches_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, - self.repos.slack_patches_repo_packages) - self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, - self.repos.slack_patches_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, + self.repos.slack_patches_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, + self.repos.slack_patches_repo_packages) + self.utils.remove_file_if_exists(self.repos.slack_patches_repo_path, + self.repos.slack_patches_repo_checksums) - changelog: str = f'{self.repos.slack_patches_repo_mirror[0]}{self.repos.slack_patches_repo_changelog}' + changelog: str = f'{self.repos.slack_patches_repo_mirror[0]}{self.repos.slack_patches_repo_changelog}' - if self.repos.slack_patches_repo_local[0].startswith('file'): - urls[self.repos.slack_patches_repo_name] = ((changelog,), self.repos.slack_patches_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_patches_repo_mirror)} ' - f'{self.repos.slack_patches_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = (f'{"".join(self.repos.slack_patches_repo_mirror)}' - f'{self.repos.slack_patches_repo_packages}') - checksums: str = (f'{"".join(self.repos.slack_patches_repo_mirror)}' - f'{self.repos.slack_patches_repo_checksums}') + if self.repos.slack_patches_repo_local[0].startswith('file'): + urls[self.repos.slack_patches_repo_name] = ((changelog,), self.repos.slack_patches_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_patches_repo_mirror)} ' + f'{self.repos.slack_patches_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = (f'{"".join(self.repos.slack_patches_repo_mirror)}' + f'{self.repos.slack_patches_repo_packages}') + checksums: str = (f'{"".join(self.repos.slack_patches_repo_mirror)}' + f'{self.repos.slack_patches_repo_checksums}') - urls[self.repos.slack_patches_repo_name] = ((changelog, packages, checksums), - self.repos.slack_patches_repo_path) + urls[self.repos.slack_patches_repo_name] = ((changelog, packages, checksums), + self.repos.slack_patches_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slack_patches_data() def alien_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.alien_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.alien_repo_path) - self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_changelog) - self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_packages) - self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_checksums) + self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_changelog) + self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_packages) + self.utils.remove_file_if_exists(self.repos.alien_repo_path, self.repos.alien_repo_checksums) - changelog: str = f'{self.repos.alien_repo_mirror[0]}{self.repos.alien_repo_changelog}' + changelog: str = f'{self.repos.alien_repo_mirror[0]}{self.repos.alien_repo_changelog}' - if self.repos.alien_repo_local[0].startswith('file'): - urls[self.repos.alien_repo_name] = ((changelog,), self.repos.alien_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.alien_repo_mirror)} ' - f'{self.repos.alien_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_packages}' - checksums: str = f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_checksums}' + if self.repos.alien_repo_local[0].startswith('file'): + urls[self.repos.alien_repo_name] = ((changelog,), self.repos.alien_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.alien_repo_mirror)} ' + f'{self.repos.alien_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_packages}' + checksums: str = f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_checksums}' - urls[self.repos.alien_repo_name] = ((changelog, packages, checksums), - self.repos.alien_repo_path) + urls[self.repos.alien_repo_name] = ((changelog, packages, checksums), + self.repos.alien_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_alien_data() def multilib_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.multilib_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.multilib_repo_path) - self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_changelog) - self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_packages) - self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_checksums) + self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_changelog) + self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_packages) + self.utils.remove_file_if_exists(self.repos.multilib_repo_path, self.repos.multilib_repo_checksums) - changelog: str = f'{self.repos.multilib_repo_mirror[0]}{self.repos.multilib_repo_changelog}' + changelog: str = f'{self.repos.multilib_repo_mirror[0]}{self.repos.multilib_repo_changelog}' - if self.repos.multilib_repo_local[0].startswith('file'): - urls[self.repos.multilib_repo_name] = ((changelog,), self.repos.multilib_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.multilib_repo_mirror)} ' - f'{self.repos.multilib_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_packages}' - checksums: str = f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_checksums}' + if self.repos.multilib_repo_local[0].startswith('file'): + urls[self.repos.multilib_repo_name] = ((changelog,), self.repos.multilib_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.multilib_repo_mirror)} ' + f'{self.repos.multilib_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_packages}' + checksums: str = f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_checksums}' - urls[self.repos.multilib_repo_name] = ((changelog, packages, checksums), - self.repos.multilib_repo_path) + urls[self.repos.multilib_repo_name] = ((changelog, packages, checksums), + self.repos.multilib_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_multilib_data() def restricted_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.restricted_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.restricted_repo_path) - self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_changelog) - self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_packages) - self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_checksums) + self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_changelog) + self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_packages) + self.utils.remove_file_if_exists(self.repos.restricted_repo_path, self.repos.restricted_repo_checksums) - changelog: str = f'{self.repos.restricted_repo_mirror[0]}{self.repos.restricted_repo_changelog}' + changelog: str = f'{self.repos.restricted_repo_mirror[0]}{self.repos.restricted_repo_changelog}' - if self.repos.restricted_repo_local[0].startswith('file'): - urls[self.repos.restricted_repo_name] = ((changelog,), self.repos.restricted_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.restricted_repo_mirror)} ' - f'{self.repos.restricted_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_packages}' - checksums: str = f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_checksums}' + if self.repos.restricted_repo_local[0].startswith('file'): + urls[self.repos.restricted_repo_name] = ((changelog,), self.repos.restricted_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.restricted_repo_mirror)} ' + f'{self.repos.restricted_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_packages}' + checksums: str = f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_checksums}' - urls[self.repos.restricted_repo_name] = ((changelog, packages, checksums), - self.repos.restricted_repo_path) + urls[self.repos.restricted_repo_name] = ((changelog, packages, checksums), + self.repos.restricted_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_restricted_data() def gnome_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.gnome_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.gnome_repo_path) - self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_changelog) - self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_packages) - self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_checksums) + self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_changelog) + self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_packages) + self.utils.remove_file_if_exists(self.repos.gnome_repo_path, self.repos.gnome_repo_checksums) - if self.repos.gnome_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.gnome_repo_mirror[0]} ' - f'{self.repos.gnome_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_changelog}' - packages: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_packages}' - checksums: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_checksums}' + if self.repos.gnome_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.gnome_repo_mirror[0]} ' + f'{self.repos.gnome_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_changelog}' + packages: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_packages}' + checksums: str = f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_checksums}' - urls[self.repos.gnome_repo_name] = ((changelog, packages, checksums), self.repos.gnome_repo_path) + urls[self.repos.gnome_repo_name] = ((changelog, packages, checksums), self.repos.gnome_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_gnome_data() def msb_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.msb_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.msb_repo_path) - self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_changelog) - self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_packages) - self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_checksums) + self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_changelog) + self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_packages) + self.utils.remove_file_if_exists(self.repos.msb_repo_path, self.repos.msb_repo_checksums) - changelog: str = f'{self.repos.msb_repo_mirror[0]}{self.repos.msb_repo_changelog}' + changelog: str = f'{self.repos.msb_repo_mirror[0]}{self.repos.msb_repo_changelog}' - if self.repos.msb_repo_local[0].startswith('file'): - urls[self.repos.msb_repo_name] = ((changelog,), self.repos.msb_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.msb_repo_mirror)} ' - f'{self.repos.msb_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_packages}' - checksums: str = f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_checksums}' + if self.repos.msb_repo_local[0].startswith('file'): + urls[self.repos.msb_repo_name] = ((changelog,), self.repos.msb_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.msb_repo_mirror)} ' + f'{self.repos.msb_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_packages}' + checksums: str = f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_checksums}' - urls[self.repos.msb_repo_name] = ((changelog, packages, checksums), self.repos.msb_repo_path) + urls[self.repos.msb_repo_name] = ((changelog, packages, checksums), self.repos.msb_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_msb_data() def csb_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.csb_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.csb_repo_path) - self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_packages) - self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_changelog) - self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_checksums) + self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_packages) + self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_changelog) + self.utils.remove_file_if_exists(self.repos.csb_repo_path, self.repos.csb_repo_checksums) - if self.repos.csb_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.csb_repo_mirror)} ' - f'{self.repos.csb_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_changelog}' - packages: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_packages}' - checksums: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_checksums}' + if self.repos.csb_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.csb_repo_mirror)} ' + f'{self.repos.csb_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_changelog}' + packages: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_packages}' + checksums: str = f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_checksums}' - urls[self.repos.csb_repo_name] = ((changelog, packages, checksums), self.repos.csb_repo_path) + urls[self.repos.csb_repo_name] = ((changelog, packages, checksums), self.repos.csb_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_csb_data() def conraid_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.conraid_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.conraid_repo_path) - self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_changelog) - self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_packages) - self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_checksums) + self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_changelog) + self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_packages) + self.utils.remove_file_if_exists(self.repos.conraid_repo_path, self.repos.conraid_repo_checksums) - if self.repos.conraid_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.conraid_repo_mirror[0]} ' - f'{self.repos.conraid_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_changelog}' - packages: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_packages}' - checksums: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_checksums}' + if self.repos.conraid_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.conraid_repo_mirror[0]} ' + f'{self.repos.conraid_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_changelog}' + packages: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_packages}' + checksums: str = f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_checksums}' - urls[self.repos.conraid_repo_name] = ((changelog, packages, checksums), self.repos.conraid_repo_path) + urls[self.repos.conraid_repo_name] = ((changelog, packages, checksums), self.repos.conraid_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_conraid_data() def slackdce_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slackdce_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slackdce_repo_path) - self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_packages) - self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_packages) + self.utils.remove_file_if_exists(self.repos.slackdce_repo_path, self.repos.slackdce_repo_checksums) - if self.repos.slackdce_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.slackdce_repo_mirror[0]} ' - f'{self.repos.slackdce_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_changelog}' - packages: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_packages}' - checksums: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_checksums}' + if self.repos.slackdce_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.slackdce_repo_mirror[0]} ' + f'{self.repos.slackdce_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_changelog}' + packages: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_packages}' + checksums: str = f'{self.repos.slackdce_repo_mirror[0]}{self.repos.slackdce_repo_checksums}' - urls[self.repos.slackdce_repo_name] = ((changelog, packages, checksums), self.repos.slackdce_repo_path) + urls[self.repos.slackdce_repo_name] = ((changelog, packages, checksums), self.repos.slackdce_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slackdce_data() def slackonly_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slackonly_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slackonly_repo_path) - self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_packages) - self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_packages) + self.utils.remove_file_if_exists(self.repos.slackonly_repo_path, self.repos.slackonly_repo_checksums) - if self.repos.slackonly_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.slackonly_repo_mirror[0]} ' - f'{self.repos.slackonly_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_changelog}' - packages: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_packages}' - checksums: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_checksums}' + if self.repos.slackonly_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.slackonly_repo_mirror[0]} ' + f'{self.repos.slackonly_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_changelog}' + packages: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_packages}' + checksums: str = f'{self.repos.slackonly_repo_mirror[0]}{self.repos.slackonly_repo_checksums}' - urls[self.repos.slackonly_repo_name] = ((changelog, packages, checksums), - self.repos.slackonly_repo_path) + urls[self.repos.slackonly_repo_name] = ((changelog, packages, checksums), + self.repos.slackonly_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slackonly_data() def salixos_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.salixos_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.salixos_repo_path) - self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_changelog) - self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_packages) - self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_checksums) + self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_changelog) + self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_packages) + self.utils.remove_file_if_exists(self.repos.salixos_repo_path, self.repos.salixos_repo_checksums) - if self.repos.salixos_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.salixos_repo_mirror[0]} ' - f'{self.repos.salixos_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_changelog}' - packages: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_packages}' - checksums: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_checksums}' + if self.repos.salixos_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.salixos_repo_mirror[0]} ' + f'{self.repos.salixos_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_changelog}' + packages: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_packages}' + checksums: str = f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_checksums}' - urls[self.repos.salixos_repo_name] = ((changelog, packages, checksums), self.repos.salixos_repo_path) + urls[self.repos.salixos_repo_name] = ((changelog, packages, checksums), self.repos.salixos_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_salixos_data() def salixos_extra_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.salixos_extra_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.salixos_extra_repo_path) - self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, - self.repos.salixos_extra_repo_changelog) - self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, - self.repos.salixos_extra_repo_packages) - self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, - self.repos.salixos_extra_repo_checksums) + self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, + self.repos.salixos_extra_repo_changelog) + self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, + self.repos.salixos_extra_repo_packages) + self.utils.remove_file_if_exists(self.repos.salixos_extra_repo_path, + self.repos.salixos_extra_repo_checksums) - changelog: str = f'{self.repos.salixos_extra_repo_mirror[0]}{self.repos.salixos_extra_repo_changelog}' + changelog: str = f'{self.repos.salixos_extra_repo_mirror[0]}{self.repos.salixos_extra_repo_changelog}' - if self.repos.salixos_extra_repo_local[0].startswith('file'): - urls[self.repos.salixos_extra_repo_name] = ((changelog,), self.repos.salixos_extra_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_extra_repo_mirror)} ' - f'{self.repos.salixos_extra_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = f'{"".join(self.repos.salixos_extra_repo_mirror)}' \ - f'{self.repos.salixos_extra_repo_packages}' - checksums: str = (f'{"".join(self.repos.salixos_extra_repo_mirror)}' - f'{self.repos.salixos_extra_repo_checksums}') + if self.repos.salixos_extra_repo_local[0].startswith('file'): + urls[self.repos.salixos_extra_repo_name] = ((changelog,), self.repos.salixos_extra_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_extra_repo_mirror)} ' + f'{self.repos.salixos_extra_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = f'{"".join(self.repos.salixos_extra_repo_mirror)}' \ + f'{self.repos.salixos_extra_repo_packages}' + checksums: str = (f'{"".join(self.repos.salixos_extra_repo_mirror)}' + f'{self.repos.salixos_extra_repo_checksums}') - urls[self.repos.salixos_extra_repo_name] = ((changelog, packages, checksums), - self.repos.salixos_extra_repo_path) + urls[self.repos.salixos_extra_repo_name] = ((changelog, packages, checksums), + self.repos.salixos_extra_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_salixos_extra_data() def salixos_patches_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slack_patches_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slack_patches_repo_path) - self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, - self.repos.salixos_patches_repo_changelog) - self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, - self.repos.salixos_patches_repo_packages) - self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, - self.repos.salixos_patches_repo_checksums) + self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, + self.repos.salixos_patches_repo_changelog) + self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, + self.repos.salixos_patches_repo_packages) + self.utils.remove_file_if_exists(self.repos.salixos_patches_repo_path, + self.repos.salixos_patches_repo_checksums) - changelog: str = f'{self.repos.salixos_patches_repo_mirror[0]}{self.repos.salixos_patches_repo_changelog}' + changelog: str = f'{self.repos.salixos_patches_repo_mirror[0]}{self.repos.salixos_patches_repo_changelog}' - if self.repos.salixos_patches_repo_local[0].startswith('file'): - urls[self.repos.salixos_patches_repo_name] = ((changelog,), self.repos.salixos_patches_repo_path) - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_patches_repo_mirror)} ' - f'{self.repos.salixos_patches_repo_path}' - ) - self.utils.process(lftp_command) - else: - packages: str = (f'{"".join(self.repos.salixos_patches_repo_mirror)}' - f'{self.repos.salixos_patches_repo_packages}') - checksums: str = (f'{"".join(self.repos.salixos_patches_repo_mirror)}' - f'{self.repos.salixos_patches_repo_checksums}') + if self.repos.salixos_patches_repo_local[0].startswith('file'): + urls[self.repos.salixos_patches_repo_name] = ((changelog,), self.repos.salixos_patches_repo_path) + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_patches_repo_mirror)} ' + f'{self.repos.salixos_patches_repo_path}' + ) + self.utils.process(lftp_command) + else: + packages: str = (f'{"".join(self.repos.salixos_patches_repo_mirror)}' + f'{self.repos.salixos_patches_repo_packages}') + checksums: str = (f'{"".join(self.repos.salixos_patches_repo_mirror)}' + f'{self.repos.salixos_patches_repo_checksums}') - urls[self.repos.salixos_patches_repo_name] = ((changelog, packages, checksums), - self.repos.salixos_patches_repo_path) + urls[self.repos.salixos_patches_repo_name] = ((changelog, packages, checksums), + self.repos.salixos_patches_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_salixos_patches_data() def slackel_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slackel_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slackel_repo_path) - self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_packages) - self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_packages) + self.utils.remove_file_if_exists(self.repos.slackel_repo_path, self.repos.slackel_repo_checksums) - if self.repos.slackel_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.slackel_repo_mirror[0]} ' - f'{self.repos.slackel_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_changelog}' - packages: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_packages}' - checksums: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_checksums}' + if self.repos.slackel_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.slackel_repo_mirror[0]} ' + f'{self.repos.slackel_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_changelog}' + packages: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_packages}' + checksums: str = f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_checksums}' - urls[self.repos.slackel_repo_name] = ((changelog, packages, checksums), self.repos.slackel_repo_path) + urls[self.repos.slackel_repo_name] = ((changelog, packages, checksums), self.repos.slackel_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slackel_data() def slint_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.slint_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.slint_repo_path) - self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_changelog) - self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_packages) - self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_checksums) + self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_changelog) + self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_packages) + self.utils.remove_file_if_exists(self.repos.slint_repo_path, self.repos.slint_repo_checksums) - if self.repos.slint_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.slint_repo_mirror[0]} ' - f'{self.repos.slint_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_changelog}' - packages: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_packages}' - checksums: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_checksums}' + if self.repos.slint_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.slint_repo_mirror[0]} ' + f'{self.repos.slint_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_changelog}' + packages: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_packages}' + checksums: str = f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_checksums}' - urls[self.repos.slint_repo_name] = ((changelog, packages, checksums), self.repos.slint_repo_path) + urls[self.repos.slint_repo_name] = ((changelog, packages, checksums), self.repos.slint_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_slint_data() def pprkut_repository(self) -> None: - if not self.option_for_install_data: - urls: dict = {} - self.utils.create_directory(self.repos.pprkut_repo_path) + urls: dict = {} + self.utils.create_directory(self.repos.pprkut_repo_path) - self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_changelog) - self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_packages) - self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_checksums) + self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_changelog) + self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_packages) + self.utils.remove_file_if_exists(self.repos.pprkut_repo_path, self.repos.pprkut_repo_checksums) - if self.repos.pprkut_repo_local[0].startswith('file'): - lftp_command: str = ( - f'lftp {self.lftp_mirror_options} {self.repos.pprkut_repo_mirror[0]} ' - f'{self.repos.pprkut_repo_path}' - ) - self.utils.process(lftp_command) - else: - changelog: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_changelog}' - packages: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_packages}' - checksums: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_checksums}' + if self.repos.pprkut_repo_local[0].startswith('file'): + lftp_command: str = ( + f'lftp {self.lftp_mirror_options} {self.repos.pprkut_repo_mirror[0]} ' + f'{self.repos.pprkut_repo_path}' + ) + self.utils.process(lftp_command) + else: + changelog: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_changelog}' + packages: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_packages}' + checksums: str = f'{self.repos.pprkut_repo_mirror[0]}{self.repos.pprkut_repo_checksums}' - urls[self.repos.pprkut_repo_name] = ((changelog, packages, checksums), self.repos.pprkut_repo_path) + urls[self.repos.pprkut_repo_name] = ((changelog, packages, checksums), self.repos.pprkut_repo_path) - self.download.download(urls) - print() + self.download.download(urls) + print() self.data.install_pprkut_data() def ponce_repository(self) -> None: """ Update the slackbuild repositories. """ - if not self.option_for_install_data: - self.utils.create_directory(self.repos.ponce_repo_path) - self.utils.remove_file_if_exists(self.repos.ponce_repo_path, self.repos.ponce_repo_slackbuilds) - self.utils.remove_file_if_exists(self.repos.ponce_repo_path, self.repos.ponce_repo_changelog) + self.utils.create_directory(self.repos.ponce_repo_path) + self.utils.remove_file_if_exists(self.repos.ponce_repo_path, self.repos.ponce_repo_slackbuilds) + self.utils.remove_file_if_exists(self.repos.ponce_repo_path, self.repos.ponce_repo_changelog) - lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.lftp_exclude} ' - f'{self.repos.ponce_repo_mirror[0]} {self.repos.ponce_repo_path}') + lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.lftp_exclude} ' + f'{self.repos.ponce_repo_mirror[0]} {self.repos.ponce_repo_path}') - self.utils.process(lftp_command) + self.utils.process(lftp_command) # It checks if there is the SLACKBUILDS.TXT file, otherwise going to create it. if not Path(self.repos.ponce_repo_path, self.repos.ponce_repo_slackbuilds).is_file(): @@ -633,15 +609,14 @@ class UpdateRepositories(Configs): self.data.install_ponce_data() def sbo_repository(self) -> None: - if not self.option_for_install_data: - self.utils.create_directory(self.repos.sbo_repo_path) - self.utils.remove_file_if_exists(self.repos.sbo_repo_path, self.repos.sbo_repo_slackbuilds) - self.utils.remove_file_if_exists(self.repos.sbo_repo_path, self.repos.sbo_repo_changelog) + self.utils.create_directory(self.repos.sbo_repo_path) + self.utils.remove_file_if_exists(self.repos.sbo_repo_path, self.repos.sbo_repo_slackbuilds) + self.utils.remove_file_if_exists(self.repos.sbo_repo_path, self.repos.sbo_repo_changelog) - lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.lftp_exclude} ' - f'{self.repos.sbo_repo_mirror[0]} {self.repos.sbo_repo_path}') + lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.lftp_exclude} ' + f'{self.repos.sbo_repo_mirror[0]} {self.repos.sbo_repo_path}') - self.utils.process(lftp_command) + self.utils.process(lftp_command) # It checks if there is the SLACKBUILDS.TXT file, otherwise going to create it. if not Path(self.repos.sbo_repo_path, self.repos.sbo_repo_slackbuilds).is_file(): diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index b4f26c50..7c255355 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -32,8 +32,8 @@ class Usage(Configs): f' slpkg [{self.cyan}COMMAND{self.endc}] [-b, build, -i, install, -R, remove ]\n' f' slpkg [{self.cyan}COMMAND{self.endc}] [-d, download, -f, find, -w, view ]\n' f' slpkg [{self.cyan}COMMAND{self.endc}] [-s, search, -e, dependees, -t, tracking ]\n' - f' slpkg [{self.yellow}OPTIONS{self.endc}] [-y, --yes, -j, --jobs, -c, --check, -O, --resolve-off]\n' - f' slpkg [{self.yellow}OPTIONS{self.endc}] [-r, --reinstall -k, --skip-installed, -a, --install-data]\n' + f' slpkg [{self.yellow}OPTIONS{self.endc}] [-y, --yes, -j, --jobs, -c, --check]\n' + f' slpkg [{self.yellow}OPTIONS{self.endc}] [-O, --resolve-off, -r, --reinstall -k, --skip-installed]\n' f' slpkg [{self.yellow}OPTIONS{self.endc}] [-E, --full-reverse, -S, --search, -n, --no-silent]\n' f' slpkg [{self.yellow}OPTIONS{self.endc}] [-p, --pkg-version, -P, --parallel, -m, --no-case]\n' f' slpkg [{self.yellow}OPTIONS{self.endc}] [-o, --repository=NAME, -z, --directory=PATH]\n' @@ -71,7 +71,6 @@ class Usage(Configs): f' {self.yellow}-O, --resolve-off{self.endc} Turns off dependency resolving.\n' f' {self.yellow}-r, --reinstall{self.endc} Upgrade packages of the same version.\n' f' {self.yellow}-k, --skip-installed{self.endc} Skip installed packages.\n' - f' {self.yellow}-a, --install-data{self.endc} Install data into the database only.\n' f' {self.yellow}-E, --full-reverse{self.endc} Full reverse dependency.\n' f' {self.yellow}-S, --search{self.endc} Search and load packages using the dialog.\n' f' {self.yellow}-n, --no-silent{self.endc} Disable silent mode.\n'