diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-28 14:29:31 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-28 14:29:31 +0000 |
commit | bf1f85bac898075e0ca19924bccce873cad40b6b (patch) | |
tree | 4fb4aca24b2df9ffa2b0e61e6683f1b028a17b0f /perl-install/install_any.pm | |
parent | 1358da81fc70e48fe1eec95279aca0e728e6e0b7 (diff) | |
download | drakx-backup-do-not-use-bf1f85bac898075e0ca19924bccce873cad40b6b.tar drakx-backup-do-not-use-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.gz drakx-backup-do-not-use-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.bz2 drakx-backup-do-not-use-bf1f85bac898075e0ca19924bccce873cad40b6b.tar.xz drakx-backup-do-not-use-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.pm | 2 |
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; |