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)