aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-07-25 17:59:52 +0000
committerMichael Scherer <misc@mageia.org>2011-07-25 17:59:52 +0000
commitd09c70a202fc93ccdefd3409a211f9a628a6ba79 (patch)
tree8061107562458831fc06016623df313ca0261e11
parent67fe803782359e0df9b6b5fea3c39a3fb07faffc (diff)
downloadpuppet-d09c70a202fc93ccdefd3409a211f9a628a6ba79.tar
puppet-d09c70a202fc93ccdefd3409a211f9a628a6ba79.tar.gz
puppet-d09c70a202fc93ccdefd3409a211f9a628a6ba79.tar.bz2
puppet-d09c70a202fc93ccdefd3409a211f9a628a6ba79.tar.xz
puppet-d09c70a202fc93ccdefd3409a211f9a628a6ba79.zip
use copy instead of move ( or the cleaning will not be very effective )
-rwxr-xr-xmodules/mirror_cleaner/files/orphans_cleaner.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mirror_cleaner/files/orphans_cleaner.pl b/modules/mirror_cleaner/files/orphans_cleaner.pl
index 04a73fe2..ff4f12e5 100755
--- a/modules/mirror_cleaner/files/orphans_cleaner.pl
+++ b/modules/mirror_cleaner/files/orphans_cleaner.pl
@@ -64,7 +64,7 @@ foreach my $a ( @arches ) {
( $dest_rpm = $rpm ) =~ s/$path/$dest_path/;
my $dir = dirname $dest_rpm;
make_path $dir if not -d $dir;
- copy($rpm, $dest_rpm)
+ move($rpm, $dest_rpm)
}
}
}