copr-distgit-client - Man Page

Synopsis

copr-distgit-client [-h] [--configdir CONFIGDIR] [--loglevel LOGLEVEL] [--forked-from CLONE_URL] {sources,srpm,clone} ...

Description

A simple, configurable python utility that is able to download sources from various dist-git instances, and generate source RPMs. The utility is able to automatically map the "origin" .git/config clone URL (or --forked-from URL, if specified) to a corresponding dist-git instance configured in /etc/copr-distgit-client directory.

Options

--configdir CONFIGDIR

Where to load configuration files from

--loglevel LOGLEVEL

Python logging level, e.g. debug, info, error

--forked-from CLONE_URL

Specify that this git clone directory is a dist-git repository fork. If used, the default clone url detection from the .git/config file is disabled and CLONE_URL is used instead. This specified CLONE_URL is used to detect the appropriate lookaside cache pattern to download the sources.

Actions

copr-distgit-client sources

Download sources from the lookaside cache

copr-distgit-client srpm

Generate a source RPM

copr-distgit-client clone

Clone package from a DistGit source

COMMAND 'copr-distgit-client sources'

usage: copr-distgit-client sources [-h]

Using the 'url' .git/config, detect where the right DistGit lookaside cache exists, and download the corresponding source files.

COMMAND 'copr-distgit-client srpm'

usage: copr-distgit-client srpm [-h] [--outputdir OUTPUTDIR]
                               [--mock-chroot MOCK_CHROOT] [--dry-run]

Generate a source RPM from the downloaded source files by 'sources' command, please run 'sources' first.

OPTIONS 'copr-distgit-client srpm'

--outputdir OUTPUTDIR

Where to store the resulting source RPM

--mock-chroot MOCK_CHROOT

Generate the SRPM in mock buildroot instead of on host. The argument is passed down to mock as the 'mock -r|--root' argument.

--dry-run

Don't produce the SRPM, just print the command which would be otherwise called

COMMAND 'copr-distgit-client clone'

usage: copr-distgit-client clone [-h] [--dist-git DIST_GIT] package

package

Package name specification. For some DistGit instances this consists of multiple parts separated by slash, e.g. for '--dist-git=fedora-copr' use

OPTIONS 'copr-distgit-client clone'

--dist-git DIST_GIT

The DistGit ID as configured in /etc/copr-distgit-client/

Author

Copr Team
copr-team@redhat.com

Distribution

The latest version of Copr may be downloaded from https://github.com/fedora-copr/copr

Info

2024-01-24 Copr Generated Python Manual