refs #596 fix bug when removing packages
parent
d1822ec5fb
commit
ffc24fb48b
|
@ -36,7 +36,7 @@ def remove (pkgs):
|
||||||
apt_cache = apt.Cache()
|
apt_cache = apt.Cache()
|
||||||
for p in pkgs:
|
for p in pkgs:
|
||||||
if p in apt_cache:
|
if p in apt_cache:
|
||||||
p.mark_delete()
|
apt_cache[p].mark_delete()
|
||||||
try:
|
try:
|
||||||
apt_cache.commit()
|
apt_cache.commit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue