summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-13 12:31:25 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-13 12:31:25 +0000
commit829fe6593c8099a6179e78458fc4ed3fc921996f (patch)
tree807f6906971396a1d3ee413711c8e5235ac5487e /perl-install/install_any.pm
parentd9658c92836d7487c91063465f5cd52a7709f129 (diff)
downloaddrakx-backup-do-not-use-829fe6593c8099a6179e78458fc4ed3fc921996f.tar
drakx-backup-do-not-use-829fe6593c8099a6179e78458fc4ed3fc921996f.tar.gz
drakx-backup-do-not-use-829fe6593c8099a6179e78458fc4ed3fc921996f.tar.bz2
drakx-backup-do-not-use-829fe6593c8099a6179e78458fc4ed3fc921996f.tar.xz
drakx-backup-do-not-use-829fe6593c8099a6179e78458fc4ed3fc921996f.zip
die if getAndSaveFile failed, so that it will be easier to debug
if we have this problem..
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 af380f3e7..e6552307f 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -137,7 +137,7 @@ sub getAndSaveFile {
my $f = ref($file) ? $file : getFile($file) or return;
open(my $F, ">$local") or return;
local $_;
- while (<$f>) { syswrite $F, $_ }
+ while (<$f>) { syswrite($F, $_) or die("getAndSaveFile: $!") }
1;
}