summaryrefslogtreecommitdiffstats
path: root/perl-install/commands.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-08 12:50:22 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-08 12:50:22 +0000
commit477f9e81cb3aa78829210942e8185e8146c6cd5e (patch)
tree9d8a4134a0c54dd54fbf623adff5d039f7a844c6 /perl-install/commands.pm
parent38c803288507d86bfd04daf2f7a4b656f2c7de7b (diff)
downloaddrakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.gz
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.bz2
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.xz
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.zip
no_comment
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r--perl-install/commands.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm
index 0323f0f02..c6695603c 100644
--- a/perl-install/commands.pm
+++ b/perl-install/commands.pm
@@ -511,10 +511,11 @@ sub install_cpio($$) {
eval { rm("-r", $dir) };
mkdir $dir, 0755;
require 'run_program.pm';
- run_program::run("cd $dir ; bzip2 -cd $cpio | cpio -id $name $name/*") and return "$dir/$name";
+ run_program::run("cd $dir ; bzip2 -cd $cpio | cpio -id $name $name/*");
#- not found, cache result
- $cached_failed_install_cpio{"$dir $name"} = 1;
+ $cached_failed_install_cpio{"$dir $name"} = ! -e "$dir/$name";
+ "$dir/$name";
}