Skip to content

This program is called as a commit hook in a config SVN repository and automatically creates the necessary config RPMs after every commit and puts them in the configured RPM repository.

kvogelgesang/yadt-config-rpm-maker

 
 

Repository files navigation

yadt-config-rpm-maker

This program is called as a post-commit hook in a config SVN repository.
It automatically creates configuration RPMs after every commit and puts them in the configured RPM repository. Only the configuration affected by the commit is rebuilt.

Build

Install build dependencies

pysvn (a python library for SVN) is required, but not available by usual python means (pip & easy_install). So you need to install it from your distribution repository.

sudo yum install pysvn
# install additional build dependency
sudo pip install PyYAML

Test the code

When you run the integration tests with python setup.py test, the config-rpm-maker will build test RPMs. It is required that your /bin/sh points to a bash, not a dash!
Dash is the default in Ubuntu.
You can set /bin/sh back to bash by running sudo dpkg-reconfigure dash

Build RPM

python setup.py bdist_rpm

Usage

The code fragment below builds all relevant RPMs for the SVN repository at /foo/bar/svn/test in revision 123.

config-rpm-maker file:///foo/bar/svn/test 123

About

This program is called as a commit hook in a config SVN repository and automatically creates the necessary config RPMs after every commit and puts them in the configured RPM repository.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published