mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for messages
This commit is contained in:
parent
0e47474776
commit
2f68d65215
4 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue