[entropy.db] EntropyRepositoryBase.__filterUse: add backward compatibility, if use flag is not listed, it's considered disabled

This commit is contained in:
Fabio Erculiani
2011-04-27 17:11:21 +02:00
parent 9693f3e630
commit bc63e0fee8

View File

@@ -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