diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-23 19:50:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-23 19:50:12 +0000 |
commit | e0d0347f266ae545f0b1b6ec3d638e1c41a74a38 (patch) | |
tree | 5d00fe15554fb1584ee1c87fd997746750a34626 | |
parent | 0d9ab5125fed78454daa80dc2412d0e51c81552c (diff) | |
download | drakx-e0d0347f266ae545f0b1b6ec3d638e1c41a74a38.tar drakx-e0d0347f266ae545f0b1b6ec3d638e1c41a74a38.tar.gz drakx-e0d0347f266ae545f0b1b6ec3d638e1c41a74a38.tar.bz2 drakx-e0d0347f266ae545f0b1b6ec3d638e1c41a74a38.tar.xz drakx-e0d0347f266ae545f0b1b6ec3d638e1c41a74a38.zip |
(screenshot_dir__and_move) make it clearer
-rw-r--r-- | perl-install/install/any.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 6ddb69407..d06813f4e 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -1234,9 +1234,10 @@ sub screenshot_dir__and_move() { if (-e $dir0 && ! -e '/root/non-chrooted-marker.DrakX') { ($dir0, 'nowarn'); #- it occurs during pkgs install when we are chrooted } elsif (-e $dir1) { - if (-e "$dir2/DrakX-screenshots") { - cp_af("$dir2/DrakX-screenshots", $dir1); - rm_rf("$dir2/DrakX-screenshots"); + my $path = "$dir2/DrakX-screenshots"; + if (-e $path) { + cp_af($path, $dir1); + rm_rf($path); } $dir1; } else { |