From 94d6759bc4e32264847536856a207fe6f03b11ad Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 21 Sep 2024 21:06:37 +0300 Subject: [PATCH] Updated comments Signed-off-by: Dimitris Zlatanidis --- slpkg/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index cab26570..83231fa2 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -469,15 +469,16 @@ class Menu(Configs): # pylint: disable=[R0902] if package.endswith('_Added.'): added.append(package.replace('_Added.', '')) + # Remove packages that not exists in the repository. if removed: packages = [pkg for pkg in packages if not pkg.endswith('_Removed.')] remove = RemovePackages(removed, self.flags) remove.remove(upgrade=True) + # New packages added to the repository are pushed to the front of + # the list to be installed first. if added: packages = [pkg for pkg in packages if not pkg.endswith('_Added.')] - # New packages added to the repository are pushed to the front of - # the list to be installed first. packages: list = added.extend(packages) packages: list = self.choose.packages(self.data, packages, command)