Function brane_tsk::local::get_package_versions
source · pub fn get_package_versions(
package_name: &str,
package_dir: &Path,
) -> Result<Vec<Version>, Error>
Expand description
Collects a list of versions in the given package directory.
§Arguments
package_dir
: The package directory to search. This function assumes it already exists.package_name
: The name of the package we search the directory of (used for debugging purposes).
§Returns
The list of Versions found in the given package directory, or a PackageError if we couldn’t.