diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-10-03 13:39:00 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-10-03 13:39:00 +0000 |
commit | d115020f6badfb7e39d08d8d9c71754a59db0d86 (patch) | |
tree | 8dd5f20d8ec341c0194ab44994fc05fc53a59c5b | |
parent | f250a2d30c967d79f00a8cc60a39fb180c3bd60d (diff) | |
download | mga-youri-submit-d115020f6badfb7e39d08d8d9c71754a59db0d86.tar mga-youri-submit-d115020f6badfb7e39d08d8d9c71754a59db0d86.tar.gz mga-youri-submit-d115020f6badfb7e39d08d8d9c71754a59db0d86.tar.bz2 mga-youri-submit-d115020f6badfb7e39d08d8d9c71754a59db0d86.tar.xz mga-youri-submit-d115020f6badfb7e39d08d8d9c71754a59db0d86.zip |
Remove a system("cp") and add a FIXME
-rw-r--r-- | lib/Youri/Submit/Post/CleanRpmsrate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Submit/Post/CleanRpmsrate.pm b/lib/Youri/Submit/Post/CleanRpmsrate.pm index 899c80f..05fb386 100644 --- a/lib/Youri/Submit/Post/CleanRpmsrate.pm +++ b/lib/Youri/Submit/Post/CleanRpmsrate.pm @@ -35,8 +35,8 @@ sub run { my $rpmsrate = "$root/$target/$arch/media/media_info/rpmsrate"; # 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("clean-rpmsrate", "-o", "$rpmsrate-new", "$rpmsrate-raw", @media); + # FIXME: unlink instead of mv if the content did not change system("mv", "-f", "$rpmsrate-new", $rpmsrate); } return |