Updated for messages

This commit is contained in:
Dimitris Zlatanidis 2023-05-18 22:08:46 +03:00
parent 0e47474776
commit 2f68d65215
4 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -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()

View file

@ -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']

View file

@ -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)