diff options
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 47d4808a4..2386619b8 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -131,12 +131,12 @@ sub addToBeDone(&$) { sub install_cpio { my ($dir, $name) = @_; - return if -e "$dir/$name"; + return "$dir/$name" if -e "$dir/$name"; my $cpio = "$dir.cpio.bz2"; -e $cpio or return; - commands::rm "-r", $dir; + eval { commands::rm "-r", $dir }; mkdir $dir, 0755; run_program::run("cd $dir ; bzip2 -cd $cpio | cpio -i $name"); "$dir/$name"; |