Added new option

This commit is contained in:
Dimitris Zlatanidis 2023-05-02 17:48:37 +03:00
parent 60e317e533
commit 9652e944f7
6 changed files with 364 additions and 326 deletions

View file

@ -1,6 +1,8 @@
4.8.3 - 29/04/2023
Updated:
- For synchronization with the local repository (Thanks to Christopher Schrauben) #166
Added:
- Options --install-data to install only data into the database
4.8.2 - 25/04/2023
Updated:

View file

@ -119,6 +119,7 @@ OPTIONS:
-o, --resolve-off Turns off dependency resolving.
-r, --reinstall Upgrade packages of the same version.
-k, --skip-installed Skip installed packages.
-a, --install-data Install data into the database only.
-E, --full-reverse Full reverse dependency.
-S, --search Search packages from the repository.
-n, --no-silent Disable silent mode.

View file

@ -10,7 +10,7 @@ slpkg \c
slpkg [-h|-v] [-u, update] [-U, upgrade] [-c, check-updates] [-I, repo-info] [-g, configs]
[-L, clean-logs] [-D, clean-tmp] [-T, clean-data] [-b, build] [-i, install] [-d, download]
[-R, remove] [-f, find] [-w, view] [-s, search] [-e, dependees] [-t, tracking] -y, --yes, -j, --jobs, -o, --resolve-off,
-r, --reinstall, -k, --skip-installed, -E, --full-reverse, -S, --search, -n, --no-silent, -p, --pkg-version, -z,
-r, --reinstall, -k, --skip-installed, -a, --install-data, -E, --full-reverse, -S, --search, -n, --no-silent, -p, --pkg-version,
-G, --generate-only, -P, --parallel, -B, --bin-repo=[\fIREPO\fR], -z, --directory=[\fIPATH\fR]
.SH DESCRIPTION
.P
@ -141,6 +141,14 @@ This a helpful option if you want to avoid building and reinstalling packages.
Note: This option affects only the dependencies. (to be used with: -i, install)
.RE
.P
.B -a, --install-data
.RS
Install the data into the database only, if when you don't want to re-download or re-synchronize the package lists,
and you have already downloaded the repository, you can apply this options to install the data into the database.
This is a helpful especially for locals repositories and for those who download the repositories manually.
(to be used with: -u, update)
.RE
.P
.B -E, --full-reverse
.RS
Full reverse dependency. Works only with -e, dependees command and show the requires too.

View file

@ -66,6 +66,8 @@ class Argparse(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'
@ -97,6 +99,8 @@ class Argparse(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,
@ -124,6 +128,8 @@ class Argparse(Configs):
self.flag_short_yes,
self.flag_generate,
self.flag_short_generate,
self.flag_install_data,
self.flag_short_install_data,
self.flag_bin_repository,
self.flag_short_bin_repository,
self.flag_parallel,

View file

@ -41,6 +41,9 @@ class UpdateRepository(Configs):
self.option_for_generate: bool = self.utils.is_option(
['-G', '--generate-only'], flags)
self.option_for_install_data: bool = self.utils.is_option(
['-a', '--install-data'], flags)
self.option_for_binaries: bool = self.utils.is_option(
['-B', '--bin-repo='], flags)
@ -85,30 +88,31 @@ class UpdateRepository(Configs):
print()
def slack_repository(self):
print(f"Downloading the '{self.green}{self.repos.slack_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slack_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slack_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_changelog}')
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_packages}')
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_changelog}')
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_packages}')
urls.append(f'{self.repos.slack_repo_mirror[0]}{self.repos.slack_repo_checksums}')
down = Downloader(self.repos.slack_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.slack_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.slack_repo_name)
self.delete_last_updated(self.repos.slack_repo_name)
@ -116,32 +120,33 @@ class UpdateRepository(Configs):
print()
def slack_extra_repository(self):
print(f"Downloading the '{self.green}{self.repos.slack_extra_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_extra_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slack_extra_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slack_extra_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_extra_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.slack_extra_repo_mirror[0]}{self.repos.slack_extra_repo_changelog}')
urls.append(f'{self.repos.slack_extra_repo_mirror[0]}{self.repos.slack_extra_repo_changelog}')
if self.repos.slack_extra_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_extra_repo_mirror)} '
f'{self.repos.slack_extra_repo_path}'
)
if self.repos.slack_extra_repo_local[0].startswith('file'):
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)
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_packages}')
urls.append(f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_checksums}')
else:
urls.append(f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_packages}')
urls.append(f'{"".join(self.repos.slack_extra_repo_mirror)}{self.repos.slack_extra_repo_checksums}')
down = Downloader(self.repos.slack_extra_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.slack_extra_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.slack_extra_repo_name)
self.delete_last_updated(self.repos.slack_extra_repo_name)
@ -149,34 +154,35 @@ class UpdateRepository(Configs):
print()
def slack_patches_repository(self):
print(f"Downloading the '{self.green}{self.repos.slack_patches_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_patches_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slack_patches_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slack_patches_repo_name}{self.endc}' repository "
f"in the '{self.repos.slack_patches_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.slack_patches_repo_mirror[0]}{self.repos.slack_patches_repo_changelog}')
urls.append(f'{self.repos.slack_patches_repo_mirror[0]}{self.repos.slack_patches_repo_changelog}')
if self.repos.slack_patches_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.slack_patches_repo_mirror)} '
f'{self.repos.slack_patches_repo_path}'
)
if self.repos.slack_patches_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.slack_patches_repo_mirror)}{self.repos.slack_patches_repo_packages}')
urls.append(f'{"".join(self.repos.slack_patches_repo_mirror)}{self.repos.slack_patches_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.slack_patches_repo_mirror)}{self.repos.slack_patches_repo_packages}')
urls.append(f'{"".join(self.repos.slack_patches_repo_mirror)}{self.repos.slack_patches_repo_checksums}')
down = Downloader(self.repos.slack_patches_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.slack_patches_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.slack_patches_repo_name)
self.delete_last_updated(self.repos.slack_patches_repo_name)
@ -184,31 +190,32 @@ class UpdateRepository(Configs):
print()
def alien_repository(self):
print(f"Downloading the '{self.green}{self.repos.alien_repo_name}{self.endc}' repository "
f"in the '{self.repos.alien_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.alien_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.alien_repo_name}{self.endc}' repository "
f"in the '{self.repos.alien_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.alien_repo_mirror[0]}{self.repos.alien_repo_changelog}')
urls.append(f'{self.repos.alien_repo_mirror[0]}{self.repos.alien_repo_changelog}')
if self.repos.alien_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.alien_repo_mirror)} '
f'{self.repos.alien_repo_path}'
)
if self.repos.alien_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_packages}')
urls.append(f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_packages}')
urls.append(f'{"".join(self.repos.alien_repo_mirror)}{self.repos.alien_repo_checksums}')
down = Downloader(self.repos.alien_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.alien_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.alien_repo_name)
self.delete_last_updated(self.repos.alien_repo_name)
@ -216,31 +223,32 @@ class UpdateRepository(Configs):
print()
def multilib_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.multilib_repo_name}{self.endc}' repository "
f"in the '{self.repos.multilib_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.multilib_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.multilib_repo_name}{self.endc}' repository "
f"in the '{self.repos.multilib_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.multilib_repo_mirror[0]}{self.repos.multilib_repo_changelog}')
urls.append(f'{self.repos.multilib_repo_mirror[0]}{self.repos.multilib_repo_changelog}')
if self.repos.multilib_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.multilib_repo_mirror)} '
f'{self.repos.multilib_repo_path}'
)
if self.repos.multilib_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_packages}')
urls.append(f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_packages}')
urls.append(f'{"".join(self.repos.multilib_repo_mirror)}{self.repos.multilib_repo_checksums}')
down = Downloader(self.repos.multilib_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.multilib_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.multilib_repo_name)
self.delete_last_updated(self.repos.multilib_repo_name)
@ -248,31 +256,32 @@ class UpdateRepository(Configs):
print()
def restricted_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.restricted_repo_name}{self.endc}' repository "
f"in the '{self.repos.restricted_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.restricted_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.restricted_repo_name}{self.endc}' repository "
f"in the '{self.repos.restricted_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.restricted_repo_mirror[0]}{self.repos.restricted_repo_changelog}')
urls.append(f'{self.repos.restricted_repo_mirror[0]}{self.repos.restricted_repo_changelog}')
if self.repos.restricted_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.restricted_repo_mirror)} '
f'{self.repos.restricted_repo_path}'
)
if self.repos.restricted_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_packages}')
urls.append(f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_packages}')
urls.append(f'{"".join(self.repos.restricted_repo_mirror)}{self.repos.restricted_repo_checksums}')
down = Downloader(self.repos.restricted_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.restricted_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.restricted_repo_name)
self.delete_last_updated(self.repos.restricted_repo_name)
@ -280,30 +289,31 @@ class UpdateRepository(Configs):
print()
def gnome_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.gnome_repo_name}{self.endc}' repository "
f"in the '{self.repos.gnome_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.gnome_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.gnome_repo_name}{self.endc}' repository "
f"in the '{self.repos.gnome_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_changelog}')
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_packages}')
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_changelog}')
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_packages}')
urls.append(f'{self.repos.gnome_repo_mirror[0]}{self.repos.gnome_repo_checksums}')
down = Downloader(self.repos.gnome_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.gnome_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.gnome_repo_name)
self.delete_last_updated(self.repos.gnome_repo_name)
@ -311,31 +321,32 @@ class UpdateRepository(Configs):
print()
def msb_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.msb_repo_name}{self.endc}' repository "
f"in the '{self.repos.msb_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.msb_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.msb_repo_name}{self.endc}' repository "
f"in the '{self.repos.msb_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.msb_repo_mirror[0]}{self.repos.msb_repo_changelog}')
urls.append(f'{self.repos.msb_repo_mirror[0]}{self.repos.msb_repo_changelog}')
if self.repos.msb_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.msb_repo_mirror)} '
f'{self.repos.msb_repo_path}'
)
if self.repos.msb_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_packages}')
urls.append(f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_packages}')
urls.append(f'{"".join(self.repos.msb_repo_mirror)}{self.repos.msb_repo_checksums}')
down = Downloader(self.repos.msb_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.msb_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.msb_repo_name)
self.delete_last_updated(self.repos.msb_repo_name)
@ -343,30 +354,31 @@ class UpdateRepository(Configs):
print()
def csb_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.csb_repo_name}{self.endc}' repository "
f"in the '{self.repos.csb_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.csb_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.csb_repo_name}{self.endc}' repository "
f"in the '{self.repos.csb_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_changelog}')
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_packages}')
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_changelog}')
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_packages}')
urls.append(f'{"".join(self.repos.csb_repo_mirror)}{self.repos.csb_repo_checksums}')
down = Downloader(self.repos.csb_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.csb_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.csb_repo_name)
self.delete_last_updated(self.repos.csb_repo_name)
@ -374,30 +386,31 @@ class UpdateRepository(Configs):
print()
def conraid_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.conraid_repo_name}{self.endc}' repository "
f"in the '{self.repos.conraid_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.conraid_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.conraid_repo_name}{self.endc}' repository "
f"in the '{self.repos.conraid_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_changelog}')
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_packages}')
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_changelog}')
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_packages}')
urls.append(f'{self.repos.conraid_repo_mirror[0]}{self.repos.conraid_repo_checksums}')
down = Downloader(self.repos.conraid_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.conraid_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.conraid_repo_name)
self.delete_last_updated(self.repos.conraid_repo_name)
@ -405,7 +418,7 @@ class UpdateRepository(Configs):
print()
def slackonly_repository(self) -> None:
if not self.repos.slackonly_repo_mirror[0].startswith('file'):
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slackonly_repo_name}{self.endc}' repository "
f"in the '{self.repos.slackonly_repo_path}' folder, please wait...\n")
urls: list = []
@ -437,30 +450,31 @@ class UpdateRepository(Configs):
print()
def salixos_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.salixos_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.salixos_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.salixos_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_changelog}')
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_packages}')
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_changelog}')
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_packages}')
urls.append(f'{self.repos.salixos_repo_mirror[0]}{self.repos.salixos_repo_checksums}')
down = Downloader(self.repos.salixos_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.salixos_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.salixos_repo_name)
self.delete_last_updated(self.repos.salixos_repo_name)
@ -468,34 +482,35 @@ class UpdateRepository(Configs):
print()
def salixos_extra_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.salixos_extra_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_extra_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.salixos_extra_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.salixos_extra_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_extra_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.salixos_extra_repo_mirror[0]}{self.repos.salixos_extra_repo_changelog}')
urls.append(f'{self.repos.salixos_extra_repo_mirror[0]}{self.repos.salixos_extra_repo_changelog}')
if self.repos.salixos_extra_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_extra_repo_mirror)} '
f'{self.repos.salixos_extra_repo_path}'
)
if self.repos.salixos_extra_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.salixos_extra_repo_mirror)}{self.repos.salixos_extra_repo_packages}')
urls.append(f'{"".join(self.repos.salixos_extra_repo_mirror)}{self.repos.salixos_extra_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.salixos_extra_repo_mirror)}{self.repos.salixos_extra_repo_packages}')
urls.append(f'{"".join(self.repos.salixos_extra_repo_mirror)}{self.repos.salixos_extra_repo_checksums}')
down = Downloader(self.repos.salixos_extra_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.salixos_extra_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.salixos_extra_repo_name)
self.delete_last_updated(self.repos.salixos_extra_repo_name)
@ -503,36 +518,37 @@ class UpdateRepository(Configs):
print()
def salixos_patches_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.salixos_patches_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_patches_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slack_patches_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.salixos_patches_repo_name}{self.endc}' repository "
f"in the '{self.repos.salixos_patches_repo_path}' folder, please wait...\n")
urls: list = []
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)
urls.append(f'{self.repos.salixos_patches_repo_mirror[0]}{self.repos.salixos_patches_repo_changelog}')
urls.append(f'{self.repos.salixos_patches_repo_mirror[0]}{self.repos.salixos_patches_repo_changelog}')
if self.repos.salixos_patches_repo_local[0].startswith('file'):
lftp_command: str = (
f'lftp {self.lftp_mirror_options} {"".join(self.repos.salixos_patches_repo_mirror)} '
f'{self.repos.salixos_patches_repo_path}'
)
if self.repos.salixos_patches_repo_local[0].startswith('file'):
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:
urls.append(f'{"".join(self.repos.salixos_patches_repo_mirror)}'
f'{self.repos.salixos_patches_repo_packages}')
urls.append(f'{"".join(self.repos.salixos_patches_repo_mirror)}'
f'{self.repos.salixos_patches_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{"".join(self.repos.salixos_patches_repo_mirror)}'
f'{self.repos.salixos_patches_repo_packages}')
urls.append(f'{"".join(self.repos.salixos_patches_repo_mirror)}'
f'{self.repos.salixos_patches_repo_checksums}')
down = Downloader(self.repos.salixos_patches_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.salixos_patches_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.salixos_patches_repo_name)
self.delete_last_updated(self.repos.salixos_patches_repo_name)
@ -540,30 +556,31 @@ class UpdateRepository(Configs):
print()
def slackel_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.slackel_repo_name}{self.endc}' repository "
f"in the '{self.repos.slackel_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slackel_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slackel_repo_name}{self.endc}' repository "
f"in the '{self.repos.slackel_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_changelog}')
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_packages}')
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_changelog}')
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_packages}')
urls.append(f'{self.repos.slackel_repo_mirror[0]}{self.repos.slackel_repo_checksums}')
down = Downloader(self.repos.slackel_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.slackel_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.slackel_repo_name)
self.delete_last_updated(self.repos.slackel_repo_name)
@ -571,30 +588,31 @@ class UpdateRepository(Configs):
print()
def slint_repository(self) -> None:
print(f"Downloading the '{self.green}{self.repos.slint_repo_name}{self.endc}' repository "
f"in the '{self.repos.slint_repo_path}' folder, please wait...\n")
urls: list = []
self.utils.create_directory(self.repos.slint_repo_path)
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.slint_repo_name}{self.endc}' repository "
f"in the '{self.repos.slint_repo_path}' folder, please wait...\n")
urls: list = []
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}'
)
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:
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_changelog}')
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_packages}')
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_checksums}')
self.utils.process(lftp_command)
else:
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_changelog}')
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_packages}')
urls.append(f'{self.repos.slint_repo_mirror[0]}{self.repos.slint_repo_checksums}')
down = Downloader(self.repos.slint_repo_path, urls, self.flags)
down.download()
print()
down = Downloader(self.repos.slint_repo_path, urls, self.flags)
down.download()
print()
self.delete_bin_database_data(self.repos.slint_repo_name)
self.delete_last_updated(self.repos.slint_repo_name)
@ -604,7 +622,7 @@ class UpdateRepository(Configs):
def slackbuild_repositories(self) -> None:
""" Update the slackbuild repositories. """
if self.repos.ponce_repo:
if not self.option_for_generate:
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.ponce_repo_name}{self.endc}' repository "
f"in the '{self.repos.ponce_repo_path}' folder, please wait...\n")
@ -633,18 +651,20 @@ class UpdateRepository(Configs):
print('\n')
else:
print(f"Downloading the '{self.green}{self.repos.sbo_repo_name}{self.endc}' repository "
f"in the '{self.repos.sbo_repo_path}' folder, please wait...\n")
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repos.sbo_repo_name}{self.endc}' repository "
f"in the '{self.repos.sbo_repo_path}' folder, please wait...\n")
self.utils.create_directory(self.repos.sbo_repo_path)
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.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.repos.sbo_repo_mirror[0]} '
f'{self.repos.sbo_repo_path}')
lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.repos.sbo_repo_mirror[0]} '
f'{self.repos.sbo_repo_path}')
self.utils.process(lftp_command)
self.utils.process(lftp_command)
self.delete_last_updated(self.repos.sbo_repo_name)
self.delete_sbo_database_data()

View file

@ -33,10 +33,10 @@ class Usage(Configs):
f' slpkg [{self.cyan}COMMAND{self.endc}] [-d, download, -f, find, -w, view [packages...]]\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-s, search, -e, dependees, -t, tracking [packages...]]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-y, --yes, -j, --jobs, -o, --resolve-off, -r, --reinstall]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-k, --skip-installed, -E, --full-reverse, -S, --search]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-n, --no-silent, -p, --pkg-version, -G, --generate-only]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-P, --parallel, -B, --bin-repo=[REPO]]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-z, --directory=[PATH]]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-k, --skip-installed, -a, --install-data]\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, -G, --generate-only, -P, --parallel]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-B, --bin-repo=[REPO]-z, --directory=[PATH]]\n'
" \nIf you need more information please try 'slpkg --help'.")
print(args)
@ -73,6 +73,7 @@ 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 packages from the repository.\n'
f' {self.yellow}-n, --no-silent{self.endc} Disable silent mode.\n'