From 5582fd2efdcfb1174e573ef285db3676b3dd590a Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 7 May 2009 17:30:28 +0200 Subject: [PATCH] SystemSettings: move live package masking metadata to persistent settings --- libraries/entropy/core.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/libraries/entropy/core.py b/libraries/entropy/core.py index 8c7d7a4f1..3e1d52b74 100644 --- a/libraries/entropy/core.py +++ b/libraries/entropy/core.py @@ -207,6 +207,11 @@ class SystemSettings(Singleton): 'user_live_mask': 12, }, 'backed_up': {}, + # package masking, live + 'live_packagemasking': { + 'unmask_matches': set(), + 'mask_matches': set(), + }, } self.__setup_const() @@ -334,17 +339,6 @@ class SystemSettings(Singleton): for keyword in self.__data['keywords']['universal']: etpConst['keywords'].add(keyword) - # live package masking / unmasking - self.__data.update( - { - 'live_packagemasking': { - 'unmask_matches': set(), - 'mask_matches': set(), - }, - } - ) - - # plugins support for plugin_id in sorted(self.__plugins): self.__plugins[plugin_id].parse(self)