summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-28 14:29:31 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-28 14:29:31 +0000
commitbf1f85bac898075e0ca19924bccce873cad40b6b (patch)
tree4fb4aca24b2df9ffa2b0e61e6683f1b028a17b0f /perl-install/install_any.pm
parent1358da81fc70e48fe1eec95279aca0e728e6e0b7 (diff)
downloaddrakx-bf1f85bac898075e0ca19924bccce873cad40b6b.tar
drakx-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.gz
drakx-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.bz2
drakx-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.xz
drakx-bf1f85bac898075e0ca19924bccce873cad40b6b.zip
log reason why getAndSaveFile can't opening dest file for writing
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 1dcf554d9..e58cf38cf 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -139,7 +139,7 @@ sub getAndSaveFile {
my ($file, $local) = @_ == 1 ? ("Mandrake/mdkinst$_[0]", $_[0]) : @_;
local $/ = \ (16 * 1024);
my $f = ref($file) ? $file : getFile($file) or return;
- open(my $F, ">$local") or return;
+ open(my $F, ">$local") or log::l("getAndSaveFile(opening $local): $!"), return;
local $_;
while (<$f>) { syswrite($F, $_) or die("getAndSaveFile($local): $!") }
1;