NAME
MDV::Repsys::Remote
SYNOPSYS
Module to access and build rpm from a svn
FUNCTIONS
new(%options)
Create a new MDV::Repsys::Remote object
options:
- configfile
-
Use this repsys configuration file instead /etc/repsys.conf
- nocommit
-
Disable commit action, usefull for testing purpose
last_error
Return the last error message after a failure.
get_pkgurl($pkgname, %options)
Return the svn url location for package named $pkgname
checkout_pkg($pkgname, $destdir, %options)
Checkout a package from svn into $destdir directory
get_old_changelog($pkgname, $handle, %options)
Read old changelog entry from svn and write it into $handle. If not specified, $handle is set to STDOUT.
log_pkg($pkgname, $handle, %options)
Build a log from svn and print it into $handle. If not specified, $handle is set to STDOUT.
build_final_changelog($pkgname, $handle, %options)
Build a the complete changelog for a package and print it into $handle. If not specified, $handle is set to STDOUT.
get_final_spec($specfile, %options)
Build the final changelog for upload from $specfile.
$options{pkgname} is the package name, if not specified, it is evaluate from the specfile.
get_srpm($pkgname, %options)
Build the final src.rpm from the svn. Return the svn revision and the src.rpm location.
import_pkg($rpmfile, %options)
Import a source package into the svn.
splitchangelog($specfile, %options)
Strip the changelog from a specfile and commit it into the svn.
tag_pkg($pkgname, %options)
TAG a package into the svn, aka copy the current tree into VERSION/RELEASE/. The operation is done directly into the svn.
FUNCTIONS OPTIONS
- revision
-
Work on this revision into the svn
- destdir
-
Extract files into this directories instead a temporary directory.
AUTHORS
Olivier Thauvin <nanardon@mandriva.org>