summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-10 16:44:40 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-10 16:44:40 +0000
commit4b0c7955bbb4c2556b604c80d4bbd7314233a7ed (patch)
treefdad888691aaa58a3e851c39128e0cea1408f6b1 /perl-install/install_any.pm
parent198568aa99edbbe56a9ea085e3244521a076fb0e (diff)
downloaddrakx-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.pm4
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";