aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-10-12 08:51:20 +0000
committerFlorent Villard <warly@mandriva.com>2006-10-12 08:51:20 +0000
commit7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18 (patch)
treeced25e038705cadbc9377eb74caf62b5598c17ce
parent744469dfea7a6df1acb49f13f2637ea7671ba7f0 (diff)
downloadmga-youri-core-7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18.tar
mga-youri-core-7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18.tar.gz
mga-youri-core-7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18.tar.bz2
mga-youri-core-7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18.tar.xz
mga-youri-core-7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18.zip
remove the prefix to be able to markrelease correctly (blino fixing warly suckiness)
-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
}