[elbe-devel] [PATCH 02/10] rpcaptcache: check, whether to be ignored dev pkgs actually exist
Torben Hohn
torben.hohn at linutronix.de
Mon Apr 8 15:42:23 CEST 2019
when a pkg that shall be ignored does not exist, a KeyError is thrown.
check existence, before trying to mark pkg for deletion.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/rpcaptcache.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
index d621a5e9..618085c0 100644
--- a/elbepack/rpcaptcache.py
+++ b/elbepack/rpcaptcache.py
@@ -130,7 +130,8 @@ class RPCAPTCache(InChRootObject):
self.cache['symlinks'].mark_install()
for p in ignore_dev_pkgs:
- self.cache[p].mark_delete()
+ if p in self.cache:
+ self.cache[p].mark_delete()
def cleanup(self, exclude_pkgs):
for p in self.cache:
--
2.11.0
More information about the elbe-devel
mailing list