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.
set_verbosity($level)
Set the verbosity verbosity of the module:
0 silent
1 progress message
2 debug message
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_pkg_lastrev($pkgname, %options)
Return the real last revision change for a package.
get_dir_lastrev($dir, %options)
Return the real last revision change for package checkout into $dir.
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.
get_pkg_info($pkgname, %options)
Return a hash containing usefull information about $pkgname:
- pkgname
-
The name of the package
- size
-
The size of the package (sum of files size)
- last_rev
-
The revision of the last changed
-
The author of the last change
- last_time
-
The time of last change (integer value, use loacaltime to have a human readable value)
cleanup
This module create a number of temporary directories, all are trashed when program terminate but with this function you can force a removal of theses directories.
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>