# empty: pretend nothing is merged
# complete: completely account for all known dependencies
# remove: build graph for use in removing packages
- myparams = set(["recurse"])
+ myparams = {"recurse" : True}
if myaction == "remove":
- myparams.add("remove")
- myparams.add("complete")
+ myparams["remove"] = True
+ myparams["complete"] = True
return myparams
if "--update" in myopts or \
"--reinstall" in myopts or \
"--noreplace" in myopts or \
"--selective" in myopts:
- myparams.add("selective")
+ myparams["selective"] = True
if "--emptytree" in myopts:
- myparams.add("empty")
- myparams.discard("selective")
+ myparams["empty"] = True
+ myparams.pop("selective", None)
if "--nodeps" in myopts:
- myparams.discard("recurse")
+ myparams.pop("recurse", None)
if "--deep" in myopts:
- myparams.add("deep")
+ myparams["deep"] = True
if "--complete-graph" in myopts:
- myparams.add("complete")
+ myparams["complete"] = True
return myparams
self._select_package = self._select_pkg_from_graph
already_deep = "deep" in self._dynamic_config.myparams
if not already_deep:
- self._dynamic_config.myparams.add("deep")
+ self._dynamic_config.myparams["deep"] = True
for root in self._frozen_config.roots:
required_set_names = self._frozen_config._required_set_names.copy()
if have_uninstall_task and \
not complete and \
not unsolvable_blockers:
- self._dynamic_config.myparams.add("complete")
+ self._dynamic_config.myparams["complete"] = True
raise self._serialize_tasks_retry("")
if unsolvable_blockers and \
self._dynamic_config._scheduler_graph = self._dynamic_config.digraph
else:
self._select_package = self._select_pkg_from_graph
- self._dynamic_config.myparams.add("selective")
+ self._dynamic_config.myparams["selective"] = True
# Always traverse deep dependencies in order to account for
# potentially unsatisfied dependencies of installed packages.
# This is necessary for correct --keep-going or --resume operation
# deep depenedencies of a scheduled build, that build needs to
# be cancelled. In order for this type of situation to be
# recognized, deep traversal of dependencies is required.
- self._dynamic_config.myparams.add("deep")
+ self._dynamic_config.myparams["deep"] = True
favorites = resume_data.get("favorites")
args_set = self._dynamic_config._sets["args"]