refs #596 fix bug when removing packages

pull/1/head
Natalia Serrano 2024-08-16 13:02:58 +02:00
parent d1822ec5fb
commit ffc24fb48b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def remove (pkgs):
apt_cache = apt.Cache()
for p in pkgs:
if p in apt_cache:
p.mark_delete()
apt_cache[p].mark_delete()
try:
apt_cache.commit()
except Exception as e: