aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-03-10 07:49:37 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-03-10 07:49:37 +0000
commita036d4bd7e338596a71b702344e419abadfb82cc (patch)
tree84095541b743f287e01a6368303fe3126cbbf8b9
parent2563be77e217834d32e46f94bcee448e9240aef3 (diff)
downloadmga-youri-submit-a036d4bd7e338596a71b702344e419abadfb82cc.tar
mga-youri-submit-a036d4bd7e338596a71b702344e419abadfb82cc.tar.gz
mga-youri-submit-a036d4bd7e338596a71b702344e419abadfb82cc.tar.bz2
mga-youri-submit-a036d4bd7e338596a71b702344e419abadfb82cc.tar.xz
mga-youri-submit-a036d4bd7e338596a71b702344e419abadfb82cc.zip
The extra '/' was causing the string to not be matched by the regexp below
for getting $rep_section and $rep_main_section, in the end making the SRPMs of all other subsections be removed when a newer package was uploaded for any subsection. (#28719)
-rw-r--r--lib/Youri/Submit/Action/Archive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Action/Archive.pm b/lib/Youri/Submit/Action/Archive.pm
index 965fc64..ef3c326 100644
--- a/lib/Youri/Submit/Action/Archive.pm
+++ b/lib/Youri/Submit/Action/Archive.pm
@@ -36,7 +36,7 @@ sub run {
print "section $section main_section $main_section\n" if $self->{_verbose};
my $arch = $package->get_arch();
$arch = $self->{_noarch} if $arch eq 'noarch';
- my $path = $arch eq 'src' ? "$target/SRPMS/" : "$target/$arch/media";
+ my $path = $arch eq 'src' ? "$target/SRPMS" : "$target/$arch/media";
$path = "$repository->{_install_root}/$path";
$path =~ s,/+,/,g;
$self->{_verbose} = 1;