Module luarocks.manif_core
Core functions for querying manifest files. This module requires no specific 'fs' functionality.
Functions
get_versions (name, manifest) | Get all versions of a package listed in a manifest file. |
load_local_manifest (repo_url) | Load a local manifest describing a repository. |
manifest_loader (file, repo_url, quick) | Back-end function that actually loads the manifest and stores it in the manifest cache. |
Functions
- 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.
Return value:
table: An array of strings listing installed versions of a package. - 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.
Return value:
table or (nil, string): A table representing the manifest, or nil followed by an error message. - 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: boolean: If given, skips type checking.