mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Use createrepo_c for creating rpm-md repos
createrepo_c is a faster and more correct implementation of generating rpm repositories, used by Fedora, openSUSE, and Mageia for creating official distro repositories. It is also used by COPR for creating repositories for packages built through its system.
This commit is contained in:
parent
0929d2d296
commit
cbaa09697f
6 changed files with 8 additions and 8 deletions
2
HACKING
2
HACKING
|
@ -88,7 +88,7 @@ To run all tests, install these packages:
|
|||
|
||||
* python-nose, python-pep8, python-mock (for epl-6 and fedora) and rpm-python
|
||||
* python3-nose, python3-pep8, python3-mock (for epl-6 and fedora) , and rpm-python3
|
||||
* createrepo
|
||||
* createrepo_c
|
||||
* git-annex
|
||||
|
||||
For epel-5:
|
||||
|
|
|
@ -17,7 +17,7 @@ RUN yum -y install \
|
|||
python-nose \
|
||||
python-pep8 \
|
||||
rpm-build \
|
||||
createrepo \
|
||||
createrepo_c \
|
||||
tar \
|
||||
python-devel \
|
||||
which \
|
||||
|
|
|
@ -10,7 +10,7 @@ RUN yum -y install \
|
|||
python-nose \
|
||||
python-pep8 \
|
||||
rpm-build \
|
||||
createrepo \
|
||||
createrepo_c \
|
||||
tar \
|
||||
python-devel \
|
||||
which \
|
||||
|
|
|
@ -45,7 +45,7 @@ with it getting clobbered when building for "newer" disttags.
|
|||
Specify "filetypes = srpm" if you want to build a source rpm instead of a
|
||||
regular rpm.
|
||||
+
|
||||
Specify "createrepo_command = createrepo -s sha1" if you are building on a
|
||||
Specify "createrepo_command = createrepo_c -s sha1" if you are building on a
|
||||
recent distro and are working with yum repositories for rhel5.
|
||||
+
|
||||
You can use environment variable RSYNC_USERNAME to override rsync username.
|
||||
|
@ -204,7 +204,7 @@ EXAMPLE
|
|||
srpm_disttag = .el5
|
||||
builder = tito.builder.MockBuilder
|
||||
builder.mock = epel-5-i386
|
||||
createrepo_command = createrepo -s sha1
|
||||
createrepo_command = createrepo_c -s sha1
|
||||
rsync = remoteserver.org:/srv/repos/rhel5/i386
|
||||
|
||||
; rsync tgz file to remote site with custom rsync arguments
|
||||
|
|
|
@ -350,8 +350,8 @@ class YumRepoReleaser(RsyncReleaser):
|
|||
# Default list of packages to copy
|
||||
filetypes = ['rpm']
|
||||
|
||||
# By default run createrepo without any paramaters
|
||||
createrepo_command = "createrepo ."
|
||||
# By default run createrepo_c without any paramaters
|
||||
createrepo_command = "createrepo_c ."
|
||||
|
||||
def __init__(self, name=None, tag=None, build_dir=None,
|
||||
config=None, user_config=None,
|
||||
|
|
|
@ -47,7 +47,7 @@ BuildRequires: docbook-style-xsl
|
|||
BuildRequires: libxslt
|
||||
BuildRequires: rpmdevtools
|
||||
BuildRequires: rpm-build
|
||||
BuildRequires: createrepo
|
||||
BuildRequires: createrepo_c
|
||||
BuildRequires: tar
|
||||
BuildRequires: which
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue