From bc63e0fee8d2e64054e7130ea8006f7ee3f63441 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 27 Apr 2011 17:11:21 +0200 Subject: [PATCH] [entropy.db] EntropyRepositoryBase.__filterUse: add backward compatibility, if use flag is not listed, it's considered disabled --- libraries/entropy/db/skel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/entropy/db/skel.py b/libraries/entropy/db/skel.py index f521f5167..39d404ddf 100644 --- a/libraries/entropy/db/skel.py +++ b/libraries/entropy/db/skel.py @@ -4419,6 +4419,10 @@ class EntropyRepositoryBase(TextInterface, EntropyRepositoryPluginStore): # mark it as disabled if it's not available if en_use not in pkguse: pkguse.add(use) + else: + # for compatibility reasons with older Entropy versions, + # use flags not in pkguse are considered disabled. + pkguse.add(use) disabled_use.add(use) enabled_not_satisfied = enabled_use - pkguse