diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-10 16:44:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-10 16:44:40 +0000 |
commit | 4b0c7955bbb4c2556b604c80d4bbd7314233a7ed (patch) | |
tree | fdad888691aaa58a3e851c39128e0cea1408f6b1 /perl-install/install_any.pm | |
parent | 198568aa99edbbe56a9ea085e3244521a076fb0e (diff) | |
download | drakx-backup-do-not-use-4b0c7955bbb4c2556b604c80d4bbd7314233a7ed.tar drakx-backup-do-not-use-4b0c7955bbb4c2556b604c80d4bbd7314233a7ed.tar.gz drakx-backup-do-not-use-4b0c7955bbb4c2556b604c80d4bbd7314233a7ed.tar.bz2 drakx-backup-do-not-use-4b0c7955bbb4c2556b604c80d4bbd7314233a7ed.tar.xz drakx-backup-do-not-use-4b0c7955bbb4c2556b604c80d4bbd7314233a7ed.zip |
no_comment
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"; |