rez.package_move#
- rez.package_move.move_package(package, dest_repository, keep_timestamp=False, force=False, verbose=False)#
Move a package.
Moving a package means copying the package to a destination repo, and ignoring (ie hiding - not removing) the source package. The package must not already exist in the destination repo.
- Parameters:
package (Package) – Package to move.
dest_repository (PackageRepository or str) – The package repository, or a package repository path, to move the package into.
keep_timestamp (bool) – By default, a newly copied package will get a new timestamp (because that’s when it was added to the target repo). By setting this option to True, the original package’s timestamp is kept intact.
force (bool) – Move the package regardless of its relocatable attribute. Use at your own risk (there is no guarantee the resulting package will be functional).
verbose (bool) – Verbose mode.
- Returns:
The newly created package in the destination repo.
- Return type:
Package