The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Pinto::Admin::Command::rebuild - rebuild the repository index

VERSION

version 0.036

SYNOPSIS

  pinto-admin --root=/some/dir rebuild [OPTIONS]

DESCRIPTION

In the event your index file becomes corrupt or goes missing, you can use this command to rebuild it. Note this is not the same as re-indexing all your distributions. Rebuilding the index simply means regenerating the index file from the information that Pinto already has about your distributions.

You might also want to rebuild the index after upgrading to a new version of Pinto. Newer versions may correct or improve the way the latest version of a package is calculated. See the --recompute option below.

COMMAND ARGUMENTS

None.

COMMAND OPTIONS

--message=MESSAGE

Prepends the MESSAGE to the VCS log message that Pinto generates. This is only relevant if you are using a VCS-based storage mechanism for Pinto.

--nocommit

Prevents Pinto from committing changes in the repository to the VCS after the operation. This is only relevant if you are using a VCS-based storage mechanism. Beware this will leave your working copy out of sync with the VCS. It is up to you to then commit or rollback the changes using your VCS tools directly. Pinto will not commit old changes that were left from a previous operation.

--noinit

Prevents Pinto from pulling/updating the repository from the VCS before the operation. This is only relevant if you are using a VCS-based storage mechanism. This can speed up operations considerably, but should only be used if you *know* that your working copy is up-to-date and you are going to be the only actor touching the Pinto repository within the VCS.

--recompute

Instructs Pinto to also recompute what it thinks is the 'latest' version of each package in the repository. This is useful if you've upgraded to a newer version of Pinto that has different (hopefully better) logic for determining the 'latest' version.

Beware that the --recompute option could change the contents of the index file, thereby affecting which packages clients will pull from the repository. And if you subsequently run the clean command, you will loose the distributions that were in the old index, but are not in the new one.

--tag=NAME

Instructs Pinto to tag the head revision of the repository at NAME. This is only relevant if you are using a VCS-based storage mechanism. The syntax of the NAME depends on the type of VCS you are using.

AUTHOR

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Imaginative Software Systems.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.