summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-24 08:53:00 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-24 08:53:00 +0000
commit2d4133ff240757edb14cf10b83bbbabb274772f3 (patch)
treeadbdd0c33b5ff160ed5a1eb80cdb47837c7e0b45 /perl-install/common.pm
parent0925f92586a8a200a632eece658b2a45b09c9cc8 (diff)
downloaddrakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar
drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.gz
drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.bz2
drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.xz
drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.zip
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index e9e803c65..5094e0e48 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -183,12 +183,14 @@ sub catch_cdie(&&) {
&$f();
}
-sub cdie {
- $@ = join '', @_;
+sub cdie($;&) {
+ print "JJJJ\n";
+ my ($err, $f) = @_;
foreach (@common::cdie_catches) {
- &{$_}(@_) and return;
+ $@ = $err;
+ &{$_}(\$err) and return;
}
- die join '', @_;
+ die $err;
}
sub all {