"""
Iterate over the different allowed things to unmask.
- 1. USE
+ 0. USE
+ 1. USE + license
2. USE + ~arch + license
3. USE + ~arch + license + missing keywords
4. USE + ~arch + license + masks
autounmask_level = self._AutounmaskLevel()
autounmask_level.allow_use_changes = True
+ yield autounmask_level
- for only_use_changes in (True, False):
+ autounmask_level.allow_license_changes = True
+ yield autounmask_level
+
+ for only_use_changes in (False,):
autounmask_level.allow_unstable_keywords = (not only_use_changes)
autounmask_level.allow_license_changes = (not only_use_changes)
license_changes = { "dev-libs/D-1": set(["TEST"]), "dev-libs/E-1": set(["TEST"]), "dev-libs/E-2": set(["TEST"]), "dev-libs/F-1": set(["TEST"]) }),
#Test license only for bug #420847
- #ResolverPlaygroundTestCase(
- #["dev-java/sun-jdk"],
- #options = {"--autounmask": True},
- #success = False,
- #mergelist = ["dev-java/sun-jdk-1.6.0.31"],
- #license_changes = { "dev-java/sun-jdk-1.6.0.31": set(["TEST"]) }),
+ ResolverPlaygroundTestCase(
+ ["dev-java/sun-jdk"],
+ options = {"--autounmask": True},
+ success = False,
+ mergelist = ["dev-java/sun-jdk-1.6.0.31"],
+ license_changes = { "dev-java/sun-jdk-1.6.0.31": set(["TEST"]) }),
)
playground = ResolverPlayground(ebuilds=ebuilds)