aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Upload/Action/Markrelease.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri/Upload/Action/Markrelease.pm')
-rw-r--r--lib/Youri/Upload/Action/Markrelease.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Youri/Upload/Action/Markrelease.pm b/lib/Youri/Upload/Action/Markrelease.pm
index 2a3b8a5..c8049db 100644
--- a/lib/Youri/Upload/Action/Markrelease.pm
+++ b/lib/Youri/Upload/Action/Markrelease.pm
@@ -36,11 +36,12 @@ sub run {
if ($repository->package_in_svn($srpm_name)) {
my $svn = $repository->get_svn_url();
- print "Run repsys markrelease -f $file $svn/$srpm_name\n";
+ my ($rev) = $file =~ /.*\/.*?\@(\d+):/;
+ print "Run repsys markrelease -f $file -r $rev $svn/$srpm_name\n";
# FIXME repsys ask for a username and password
# FIXME we should use the key in /var/home/mandrake so that /home/mandrake does not
# need to be mounted
- system('repsys', 'markrelease', '-f', $file, "$svn/$srpm_name");
+ system('repsys', 'markrelease', '-f', $file, '-r', $rev, "$svn/$srpm_name");
}
1
}