pkg = updateDependency(pkg,depName,verRange)
updates the version ranges of the specified dependencies and returns the specified package
object with updated properties. The package pkg must be in editable
mode.
The pkg object represents the
MyPackage, which depends on MyOtherPackage. Update
MyPackage so that it requires MyOtherPackage to be
version 2.0.0 or higher.
Package, specified as a matlab.mpm.Package object.
Package dependencies to update, specified as a string array, character vector, or
cell array of character vectors containing the name of the dependencies to update.
Version range, specified as a string scalar, character vector, or matlab.mpm.Version object. This option limits the output to only packages
whose Version property is within the specified version range.
Version syntax follows the Semantic
Versioning 2.0.0 format: <major
version>.<minor
version>.<patch version>,
where each version number must be a nonnegative integer, for example
1.2.3. You can optionally specify a pre-release version by adding
-<pre-release version> to the end
of the version, for example 1.2.3-alpha. Optionally specify a build
version by adding +<build
version>.
Specify a range of versions by including the <,
<=, >, or >= operators in
front of a version number. For example, >2.1.13 specifies all
versions greater than 2.1.13. Specify more than one range separated
by white space to further limit matches. For example, >2.1.13
<=2.1.15 includes versions 2.1.14 and
2.1.15, but not 2.1.13 or
2.1.16. Use the || operator to designate
multiple acceptable version ranges. For example, <2.1.13 ||
>2.1.15 includes versions less than 2.1.13 and greater
than 2.1.15, but not 2.1.14.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.