summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-19 14:49:36 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-19 14:49:36 +0000
commit4710960f1314ec790ea876f0e50250cac59e089c (patch)
treeebf7ffacad519615bc779e28e108af7fff27d14b /perl-install/install_any.pm
parentbb1b2617bc36e258f13d375faaaec1bfff97080e (diff)
downloaddrakx-4710960f1314ec790ea876f0e50250cac59e089c.tar
drakx-4710960f1314ec790ea876f0e50250cac59e089c.tar.gz
drakx-4710960f1314ec790ea876f0e50250cac59e089c.tar.bz2
drakx-4710960f1314ec790ea876f0e50250cac59e089c.tar.xz
drakx-4710960f1314ec790ea876f0e50250cac59e089c.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 d0b6c2fa9..86da03058 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -38,7 +38,7 @@ sub getFile($) {
*install_any::getFile = \&ftp::getFile;
} else {
*install_any::getFile = sub($) {
- open getFile, "/tmp/rhimage/" . relGetFile($_[0]) or sleep(1000), return;
+ open getFile, "/tmp/rhimage/" . relGetFile($_[0]) or return;
\*getFile;
};
}
@@ -148,7 +148,7 @@ sub install_cpio {
my $cpio = "$dir.cpio.bz2";
-e $cpio or return;
- eval { commands::rm "-r", $dir };
+ eval { commands::rm("-r", $dir) };
mkdir $dir, 0755;
run_program::run("cd $dir ; bzip2 -cd $cpio | cpio -id $name $name/*");
"$dir/$name";