Module luarocks.make_manifest

Module implementing the luarocks-admin "make_manifest" command. Compile a manifest file for a repository.

Functions

make_manifest (repo) Scan a LuaRocks repository and output a manifest file.
run (repo) Driver function for "make_manifest" command.
update_manifest (name, version, repo) Load a manifest file from a local repository and add to the repository information with regard to the given name and version.


Functions

make_manifest (repo)
Scan a LuaRocks repository and output a manifest file. A file called 'manifest' will be written in the root of the given repository directory.

Parameters

  • repo: A local repository directory.

Return value:

boolean or (nil, string): True if manifest was generated, or nil and an error message.
run (repo)
Driver function for "make_manifest" command.

Parameters

  • repo: string or nil: Pathname of a local repository. If not given, the default local repository configured as config.repo_dir is used.

Return value:

boolean or (nil, string): True if manifest was generated, or nil and an error message.
update_manifest (name, version, repo)
Load a manifest file from a local repository and add to the repository information with regard to the given name and version. A file called 'manifest' will be written in the root of the given repository directory.

Parameters

  • name: string: Name of a package from the repository.
  • version: string: Version of a package from the repository.
  • repo: string or nil: Pathname of a local repository. If not given, the default local repository configured as config.repo_dir is used.

Return value:

boolean or (nil, string): True if manifest was generated, or nil and an error message.

Valid XHTML 1.0!