@@ -88,7 +88,8 @@ def load_root_test_conanfile(self, path, tested_reference, profile_host, profile
8888 return root_node
8989
9090 def _load_root_virtual_conanfile (self , profile_host , profile_build , requires , tool_requires ,
91- lockfile , remotes , update , check_updates = False , python_requires = None ):
91+ lockfile , remotes , update , check_updates = False ,
92+ python_requires = None ):
9293 if not python_requires and not requires and not tool_requires :
9394 raise ConanException ("Provide requires or tool_requires" )
9495 app = ConanApp (self ._conan_api )
@@ -164,8 +165,8 @@ def load_graph(self, root_node, profile_host, profile_build, lockfile=None, remo
164165 """ Compute the dependency graph, starting from a root package, evaluation the graph with
165166 the provided configuration in profile_build, and profile_host. The resulting graph is a
166167 graph of recipes, but packages are not computed yet (package_ids) will be empty in the
167- result. The result might have errors, like version or configuration conflicts, but it is still
168- possible to inspect it. Only trying to install such graph will fail
168+ result. The result might have errors, like version or configuration conflicts, but it is
169+ still possible to inspect it. Only trying to install such graph will fail
169170
170171 :param root_node: the starting point, an already initialized Node structure, as
171172 returned by the "load_root_node" api
@@ -189,8 +190,8 @@ def load_graph(self, root_node, profile_host, profile_build, lockfile=None, remo
189190 deps_graph = builder .load_graph (root_node , profile_host , profile_build , lockfile )
190191 return deps_graph
191192
192- def analyze_binaries (self , graph , build_mode = None , remotes = None , update = None , lockfile = None ,
193- build_modes_test = None , tested_graph = None ):
193+ def analyze_binaries (self , graph , build_mode = None , remotes = None , update = None ,
194+ lockfile = None , build_modes_test = None , tested_graph = None ):
194195 """ Given a dependency graph, will compute the package_ids of all recipes in the graph, and
195196 evaluate if they should be built from sources, downloaded from a remote server, of if the
196197 packages are already in the local Conan cache
@@ -199,8 +200,12 @@ def analyze_binaries(self, graph, build_mode=None, remotes=None, update=None, lo
199200 :param graph: a Conan dependency graph, as returned by "load_graph()"
200201 :param build_mode: TODO: Discuss if this should be a BuildMode object or list of arguments
201202 :param remotes: list of remotes
202- :param update: (False by default), if Conan should look for newer versions or
203- revisions for already existing recipes in the Conan cache
203+ :param update: (``False`` by default), if Conan should look for newer versions or
204+ revisions for already existing recipes in the Conan cache. It also accepts an array of
205+ reference patterns to limit the update to those references if any of the items match.
206+ Eg. ``False``, ``None`` or ``[]`` *means no update*,
207+ ``True`` or ``["*"]`` *means update all*,
208+ and ``["pkgA/*", "pkgB/1.0@user/channel"]`` *means to update only specific packages*.
204209 :param build_modes_test: the --build-test argument
205210 :param tested_graph: In case of a "test_package", the graph being tested
206211 """
0 commit comments