refs #596 fix bug when removing packages
parent
d1822ec5fb
commit
ffc24fb48b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue