Module luarocks.manif_core
Core functions for querying manifest files.
This module requires no specific 'fs' functionality.
Functions
manifest_loader (file, repo_url, quick) | Back-end function that actually loads the manifest and stores it in the manifest cache. |
load_local_manifest (repo_url) | Load a local manifest describing a repository. |
get_versions (name, manifest) | Get all versions of a package listed in a manifest file. |
Functions
- manifest_loader (file, repo_url, quick)
-
Back-end function that actually loads the manifest
and stores it in the manifest cache.
Parameters:
file
: string: The local filename of the manifest file.repo_url
: string: The repository identifier.quick
:
- load_local_manifest (repo_url)
-
Load a local manifest describing a repository.
All functions that use manifest tables assume they were obtained
through either this function or load_manifest.
Parameters:
repo_url
: string: URL or pathname for the repository.
Returns:
-
table or (nil, string): A table representing the manifest,
or nil followed by an error message.
- get_versions (name, manifest)
-
Get all versions of a package listed in a manifest file.
Parameters:
name
: string: a package name.manifest
: table or nil: a manifest table; if not given, the default local manifest table is used.
Returns:
-
table: An array of strings listing installed
versions of a package.