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:
Neal Gompa 2017-04-01 15:06:12 -04:00
parent 0929d2d296
commit cbaa09697f
6 changed files with 8 additions and 8 deletions

View file

@ -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 * 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 * python3-nose, python3-pep8, python3-mock (for epl-6 and fedora) , and rpm-python3
* createrepo * createrepo_c
* git-annex * git-annex
For epel-5: For epel-5:

View file

@ -17,7 +17,7 @@ RUN yum -y install \
python-nose \ python-nose \
python-pep8 \ python-pep8 \
rpm-build \ rpm-build \
createrepo \ createrepo_c \
tar \ tar \
python-devel \ python-devel \
which \ which \

View file

@ -10,7 +10,7 @@ RUN yum -y install \
python-nose \ python-nose \
python-pep8 \ python-pep8 \
rpm-build \ rpm-build \
createrepo \ createrepo_c \
tar \ tar \
python-devel \ python-devel \
which \ which \

View file

@ -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 Specify "filetypes = srpm" if you want to build a source rpm instead of a
regular rpm. 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. recent distro and are working with yum repositories for rhel5.
+ +
You can use environment variable RSYNC_USERNAME to override rsync username. You can use environment variable RSYNC_USERNAME to override rsync username.
@ -204,7 +204,7 @@ EXAMPLE
srpm_disttag = .el5 srpm_disttag = .el5
builder = tito.builder.MockBuilder builder = tito.builder.MockBuilder
builder.mock = epel-5-i386 builder.mock = epel-5-i386
createrepo_command = createrepo -s sha1 createrepo_command = createrepo_c -s sha1
rsync = remoteserver.org:/srv/repos/rhel5/i386 rsync = remoteserver.org:/srv/repos/rhel5/i386
; rsync tgz file to remote site with custom rsync arguments ; rsync tgz file to remote site with custom rsync arguments

View file

@ -350,8 +350,8 @@ class YumRepoReleaser(RsyncReleaser):
# Default list of packages to copy # Default list of packages to copy
filetypes = ['rpm'] filetypes = ['rpm']
# By default run createrepo without any paramaters # By default run createrepo_c without any paramaters
createrepo_command = "createrepo ." createrepo_command = "createrepo_c ."
def __init__(self, name=None, tag=None, build_dir=None, def __init__(self, name=None, tag=None, build_dir=None,
config=None, user_config=None, config=None, user_config=None,

View file

@ -47,7 +47,7 @@ BuildRequires: docbook-style-xsl
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: rpmdevtools BuildRequires: rpmdevtools
BuildRequires: rpm-build BuildRequires: rpm-build
BuildRequires: createrepo BuildRequires: createrepo_c
BuildRequires: tar BuildRequires: tar
BuildRequires: which BuildRequires: which