From 2f68d65215d3c2919623c63e9ee2c6b78a91e5ca Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 18 May 2023 22:08:46 +0300 Subject: [PATCH] Updated for messages --- slpkg/binaries/install.py | 2 ++ slpkg/download_only.py | 2 +- slpkg/remove_packages.py | 1 + slpkg/sbos/slackbuild.py | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 8a99998b..6d52bac9 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -123,6 +123,7 @@ class Packages(Configs): self.download_the_binary_packages(package_urls) def download_the_binary_packages(self, package_urls: list) -> None: + print(f'Started to download total ({self.cyan}{len(package_urls)}{self.endc}) packages:\n') if package_urls: down = Downloader(self.tmp_slpkg, package_urls, self.flags) down.download() @@ -151,6 +152,7 @@ class Packages(Configs): self.check_md5.md5sum(self.tmp_slpkg, package, pkg_checksum) def install_packages(self) -> None: + print(f'Started the processing of ({self.cyan}{len(self.binary_packages)}{self.endc}) packages:\n') for package in self.binary_packages: command: str = f'{self.slackware_command} {self.tmp_slpkg}/{package}' self.multi_proc.process(command, package, self.progress_message) diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 13c66766..b7c4acaa 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -85,6 +85,6 @@ class DownloadOnly(Configs): print(f"{self.byellow}Copying{self.endc}: {repo_path_package} -> {Path(self.download_path, name)}") def download_the_sources(self) -> None: - print('\nDownloading the sources:') + print(f'\nStarted to download total ({self.cyan}{len(self.urls)}{self.endc}) sources:\n') down = Downloader(self.download_path, self.urls, self.flags) down.download() diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index 37a77d54..e3f87f48 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -94,6 +94,7 @@ class RemovePackages(Configs): self.packages_for_remove.extend(self.installed_dependencies) def remove_packages(self) -> None: + print(f'Started of removing total ({self.cyan}{len(self.packages_for_remove)}{self.endc}) packages:\n') for package in self.packages_for_remove: command: str = f'{self.removepkg} {package}' name: str = self.utils.split_package(package)['name'] diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index b120aba0..35fd8969 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -170,6 +170,7 @@ class Slackbuilds(Configs): self.sources[sbo] = self.data[sbo]['download'].split() def download_the_sources(self) -> None: + print(f'Started to download total ({self.cyan}{len(self.sources)}{self.endc}) sources:\n') if self.sources: for package, sbo_sources in self.sources.items(): down_urls = Downloader(Path(self.build_path, package), sbo_sources, self.flags) @@ -193,6 +194,7 @@ class Slackbuilds(Configs): self.check_md5.md5sum(path, source, checksum) def build_and_install_the_slackbuilds(self) -> None: + print(f'Started the processing of ({self.cyan}{len(self.install_order)}{self.endc}) packages:\n') for sbo in self.install_order: if self.continue_build_or_install(sbo): self.patch_slackbuild_tag(sbo)