From 80d6d15c4f0bb205f72a5e0470dafeadf2c18f75 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 5 Mar 2015 20:37:23 +0100 Subject: [PATCH] Fix propagation of negations While _negations in the Applications type was being properly initialised, it wasn't copied on merges. This simple fix merely extends the list, which should work just fine i.e. I don't think it makes sense to ensure uniqueness here. Closes: https://github.com/madduck/reclass/issues/44 Signed-off-by: martin f. krafft --- reclass/datatypes/applications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reclass/datatypes/applications.py b/reclass/datatypes/applications.py index 4f6ee10b..c7f00e41 100644 --- a/reclass/datatypes/applications.py +++ b/reclass/datatypes/applications.py @@ -54,6 +54,7 @@ def merge_unique(self, iterable): self._items.remove(negation) except ValueError: pass + self._negations.extend(iterable._negations) iterable = iterable.as_list() for i in iterable: self.append_if_new(i)