aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-03-28 11:23:58 +0000
committerOlivier Blin <blino@mageia.org>2011-03-28 11:23:58 +0000
commit51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b (patch)
tree0e1d060beb87008d7e266d6fbafb071c8bce10e9
parent329303a9e34dcc3b9d44902b712821b738edc48d (diff)
downloadmga-youri-submit-51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b.tar
mga-youri-submit-51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b.tar.gz
mga-youri-submit-51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b.tar.bz2
mga-youri-submit-51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b.tar.xz
mga-youri-submit-51d5d4e7a0d1d1cca9a5214782575b5f8aa7aa8b.zip
fix clean-rpmsrate to use core/release
-rw-r--r--lib/Youri/Submit/Post/CleanRpmsrate.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Post/CleanRpmsrate.pm b/lib/Youri/Submit/Post/CleanRpmsrate.pm
index 977e2a0..899c80f 100644
--- a/lib/Youri/Submit/Post/CleanRpmsrate.pm
+++ b/lib/Youri/Submit/Post/CleanRpmsrate.pm
@@ -33,7 +33,8 @@ sub run {
}
foreach my $arch (@changed) {
my $rpmsrate = "$root/$target/$arch/media/media_info/rpmsrate";
- my @media = "$root/$target/$arch/media/main/release";
+ # FIXME: have a method to get core/release instead of hardcoding it
+ my @media = "$root/$target/$arch/media/core/release";
system("cp", "$rpmsrate-raw", "$rpmsrate-new");
system("clean-rpmsrate", "$rpmsrate-new", @media);
system("mv", "-f", "$rpmsrate-new", $rpmsrate);