diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 68e3f9af..0c0d8580 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -81,7 +81,7 @@ class Packages(Configs): self.dependencies.append(dependency) self.dependencies: list = list(OrderedDict.fromkeys(self.dependencies)) - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') def add_dependencies_to_install_order(self) -> None: self.install_order.extend(self.dependencies) @@ -118,7 +118,7 @@ class Packages(Configs): installed_package: str = self.utils.is_package_installed(pkg) self.view.skipping_packages(installed_package) - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') self.download_the_binary_packages(packages) if self.gpg_verification: self.gpg.verify(asc_files) diff --git a/slpkg/cleanings.py b/slpkg/cleanings.py index f33b3107..2cfa068c 100644 --- a/slpkg/cleanings.py +++ b/slpkg/cleanings.py @@ -28,4 +28,4 @@ class Cleanings(Configs): self.utils.remove_folder_if_exists(self.tmp_slpkg) self.utils.create_directory(self.build_path) - print(f'{self.byellow}Successfully cleared!{self.endc}\n') + print(f'Successfully cleared!\n') diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 439c0feb..d5a0b69e 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -60,7 +60,7 @@ class DownloadOnly(Configs): self.save_slackbuild_sources(pkg) self.copy_slackbuild_scripts(pkg) - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') self.download_the_sources() elapsed_time: float = time.time() - start diff --git a/slpkg/gpg_verify.py b/slpkg/gpg_verify.py index 2b9b954b..0ddcd9b5 100644 --- a/slpkg/gpg_verify.py +++ b/slpkg/gpg_verify.py @@ -35,6 +35,6 @@ class GPGVerify(Configs): print(f"{'':>2}Error {process.returncode}: {file.name}") if exit_code == 0: - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') elif exit_code != 0 and self.dialog: self.view.question() diff --git a/slpkg/install_data.py b/slpkg/install_data.py index 4865d7d2..a21409eb 100644 --- a/slpkg/install_data.py +++ b/slpkg/install_data.py @@ -46,7 +46,7 @@ class InstallData(Configs): self.repos.last_update_json.write_text(json.dumps(last_update_json, indent=4)) def view_done_message(self) -> None: - print(f'{self.yellow}{self.ascii.done}{self.endc}\n') + print(f'{self.bgreen}{self.ascii.done}{self.endc}\n') def install_sbo_data(self) -> None: """ diff --git a/slpkg/multi_process.py b/slpkg/multi_process.py index 5e8ff8c7..3845d88b 100644 --- a/slpkg/multi_process.py +++ b/slpkg/multi_process.py @@ -40,8 +40,8 @@ class MultiProcess(Configs): None. """ if self.silent_mode or self.option_for_silent: - done: str = f'{self.yellow}{self.ascii.done}{self.endc}' - failed: str = f'{self.red}{self.ascii.failed}{self.endc}' + done: str = f'{self.bgreen}{self.ascii.done}{self.endc}' + failed: str = f'{self.bred}{self.ascii.failed}{self.endc}' # Starting multiprocessing process_1 = Process(target=self.process_and_log, args=(command,)) diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 017d1353..4b0ac5dc 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -90,7 +90,7 @@ class Slackbuilds(Configs): self.dependencies.append(dependency) self.dependencies: list = list(OrderedDict.fromkeys(self.dependencies)) - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') def add_dependencies_to_install_order(self) -> None: self.install_order.extend(self.dependencies) @@ -156,7 +156,7 @@ class Slackbuilds(Configs): self.sources[sbo] = (sources, Path(self.build_path, sbo)) - print(f'{self.yellow}{self.ascii.done}{self.endc}') + print(f'{self.bgreen}{self.ascii.done}{self.endc}') if self.gpg_verification and self.repository == self.repos.sbo_repo_name: self.gpg.verify(asc_files) diff --git a/slpkg/utilities.py b/slpkg/utilities.py index c7a064f4..e1a1210f 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -77,11 +77,10 @@ class Utilities(Configs): 'tag': pkg_tag } - def finished_time(self, elapsed_time: float) -> None: + @staticmethod + def finished_time(elapsed_time: float) -> None: """ Printing the elapsed time. """ - print(f'\n{self.yellow}Finished:{self.endc}', - time.strftime(f'{self.cyan}%H:%M:%S{self.endc}', - time.gmtime(elapsed_time))) + print(f'\nFinished:', time.strftime(f'%H:%M:%S', time.gmtime(elapsed_time))) @staticmethod def is_option(options: tuple, flags: list) -> bool: