Removed double

This commit is contained in:
Dimitris Zlatanidis 2022-12-24 21:13:46 +02:00
parent ea158a41c5
commit 2e3f4c54d0

View file

@ -13,7 +13,6 @@ from slpkg.utilities import Utilities
from slpkg.blacklist import Blacklist from slpkg.blacklist import Blacklist
# This is almost always a good thing to do at the beginning of your programs.
locale.setlocale(locale.LC_ALL, '') locale.setlocale(locale.LC_ALL, '')
@ -57,12 +56,10 @@ class Upgrade:
code, tags = self.d.checklist(f'There are {len(choices)} packages for upgrade:', code, tags = self.d.checklist(f'There are {len(choices)} packages for upgrade:',
title='Choose packages you want to upgrade', title='Choose packages you want to upgrade',
height=10, width=70, list_height=0, choices=choices) height=10, width=70, list_height=0, choices=choices)
os.system('clear')
if code == self.d.OK: if code == self.d.OK:
os.system('clear')
if not tags: if not tags:
raise SystemExit() raise SystemExit()
return tags return tags
os.system('clear')
raise SystemExit() raise SystemExit()