From bd07db544f693168cb12463804dd1fa3ccbd522f Mon Sep 17 00:00:00 2001 From: dalto Date: Sun, 28 Nov 2021 15:56:16 -0600 Subject: [PATCH] [packages] Update doumentation for run_pacman() to be more complete --- src/modules/packages/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/packages/main.py b/src/modules/packages/main.py index 688cf6340..7be143363 100644 --- a/src/modules/packages/main.py +++ b/src/modules/packages/main.py @@ -407,7 +407,13 @@ class PMPacman(PackageManager): self.progress_fraction = (completed_packages * 1.0 / total_packages) def run_pacman(self, command, callback=False): - # Call pacman in a loop until it is successful or the number of retries is exceeded + """ + Call pacman in a loop until it is successful or the number of retries is exceeded + :param command: The pacman command to run + :param callback: An optional boolean that indicates if this pacman run should use the callback + :return: + """ + pacman_count = 0 while pacman_count <= self.pacman_num_retries: pacman_count += 1