From b11454526d0521e8d0f596184193332bd68a8c67 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sun, 12 Jan 2014 21:19:49 +0100 Subject: [PATCH] Fixed the KeyError for multiple dependencies on the same task --- waflib/extras/mem_reducer.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/waflib/extras/mem_reducer.py b/waflib/extras/mem_reducer.py index 4ec421a6..43712668 100644 --- a/waflib/extras/mem_reducer.py +++ b/waflib/extras/mem_reducer.py @@ -85,7 +85,10 @@ def get_out(self): pass else: for k in ws: - k.remove(tsk) + try: + k.remove(tsk) + except KeyError: + pass return tsk Runner.Parallel.get_out = get_out @@ -100,6 +103,9 @@ def skip(self, tsk): pass else: for k in ws: - k.remove(tsk) + try: + k.remove(tsk) + except KeyError: + pass Runner.Parallel.skip = skip