mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated comments
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
ee7e859a3c
commit
94d6759bc4
1 changed files with 3 additions and 2 deletions
|
@ -469,15 +469,16 @@ class Menu(Configs): # pylint: disable=[R0902]
|
||||||
if package.endswith('_Added.'):
|
if package.endswith('_Added.'):
|
||||||
added.append(package.replace('_Added.', ''))
|
added.append(package.replace('_Added.', ''))
|
||||||
|
|
||||||
|
# Remove packages that not exists in the repository.
|
||||||
if removed:
|
if removed:
|
||||||
packages = [pkg for pkg in packages if not pkg.endswith('_Removed.')]
|
packages = [pkg for pkg in packages if not pkg.endswith('_Removed.')]
|
||||||
remove = RemovePackages(removed, self.flags)
|
remove = RemovePackages(removed, self.flags)
|
||||||
remove.remove(upgrade=True)
|
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
|
# New packages added to the repository are pushed to the front of
|
||||||
# the list to be installed first.
|
# 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 = added.extend(packages)
|
||||||
|
|
||||||
packages: list = self.choose.packages(self.data, packages, command)
|
packages: list = self.choose.packages(self.data, packages, command)
|
||||||
|
|
Loading…
Reference in a new issue