Updated comments

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-09-21 21:06:37 +03:00
parent ee7e859a3c
commit 94d6759bc4

View file

@ -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)
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.
if added:
packages = [pkg for pkg in packages if not pkg.endswith('_Added.')]
packages: list = added.extend(packages)
packages: list = self.choose.packages(self.data, packages, command)