summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-08 17:27:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-08 17:27:56 +0000
commit85f7d9cca33fdfb0688789e4116db9f0b1c88fa5 (patch)
tree804f95237b28edd1422d71ab2d7e8a8dfee2ce59 /perl-install/common.pm
parent4864f1a708acc8cf939fcd2ddff6d8c91ca2b6cb (diff)
downloaddrakx-backup-do-not-use-85f7d9cca33fdfb0688789e4116db9f0b1c88fa5.tar
drakx-backup-do-not-use-85f7d9cca33fdfb0688789e4116db9f0b1c88fa5.tar.gz
drakx-backup-do-not-use-85f7d9cca33fdfb0688789e4116db9f0b1c88fa5.tar.bz2
drakx-backup-do-not-use-85f7d9cca33fdfb0688789e4116db9f0b1c88fa5.tar.xz
drakx-backup-do-not-use-85f7d9cca33fdfb0688789e4116db9f0b1c88fa5.zip
add formatError_and_log (to get log'ing even now that SIG{__DIE__} is not there anymore)
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 6342bd955..22282fa44 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -9,7 +9,7 @@ use vars qw(@ISA @EXPORT $SECTORSIZE);
@ISA = qw(Exporter);
# no need to export ``_''
-@EXPORT = qw($SECTORSIZE N N_ check_for_xserver files_exist formatTime formatXiB makedev mandrake_release removeXiBSuffix require_root_capability salt setVirtual set_alternative set_permissions translate unmakedev untranslate);
+@EXPORT = qw($SECTORSIZE N N_ check_for_xserver files_exist formatTime formatXiB makedev mandrake_release removeXiBSuffix require_root_capability salt setVirtual set_alternative set_permissions translate unmakedev untranslate formatError_and_log);
# perl_checker: RE-EXPORT-ALL
push @EXPORT, @MDK::Common::EXPORT;
@@ -161,6 +161,12 @@ sub expand_symlinks_but_simple {
sub sync { &MDK::Common::System::sync }
+sub formatError_and_log {
+ my ($err) = @_;
+ log::l("error: $err");
+ formatError($err);
+}
+
# Group the list by n. Returns a reference of lists of length n
sub group_n_lm {
my $n = shift;