This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

repoman

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page contains changes which are not marked for translation.

Resources

repoman is a Python program used to enforce a minimal level of quality assurance in ebuilds and related metadata added to ebuild repositories.

Installation

Emerge

Note
In case Portage version is lower than 2.3.0 repoman is installed with it

Install repoman through emerge:

root #emerge --ask --verbose app-portage/repoman

Configuration

For signing commits, enable the sign feature in portage and set the appropriate key ID:

FILE /etc/portage/make.conf
FEATURES="... sign ..."
PORTAGE_GPG_KEY="<GnuPG fingerprint>"

Usage

Using Repoman is highly recommended for committing to Gentoo with Github pull requests.

Invocation

Note
Messages pertaining to specific lines may be inaccurate in the presence of continuation lines from use of the \ character in BASH.

To create a package's Manifest file:

user $repoman manifest

To scan the directory tree for QA issues (full listing), include dev profiles in dependency checks and force the metadata.xml parse check to be carried out:

user $repoman -dx full

To scan the directory tree for QA issues; if OK, commit via VCS, include dev profiles in dependency checks and force the metadata.xml parse check to be carried out:

user $repoman -dx commit
Note
repoman commit only works inside local cvs, git, or subversion repositories.

When used in git, this command forces commit signature.


The key will have to be configured by git config user.signingkey key_id.
user $repoman --help

See also

  • Equery - A tool to make several common Portage operations simpler.
  • Portageq - A tool to quickly query Portage information.