From 051c4b3cd9727392907d14240bb7255f47024724 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 2 Jan 2003 14:01:12 +0000 Subject: (ask_from__add_modify_remove): check all callbacks are given --- perl-install/interactive.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install') diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 7f5a93934..8ae3401c9 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -254,6 +254,8 @@ sub ask_from__add_modify_remove { my ($o, $title, $message, $l, %callback) = @_; die "ask_from__add_modify_remove only handles one item" if @$l != 1; + $callback{$_} or internal_error("missing callback $_") foreach qw(Add Modify Remove); + if ($o->can('ask_from__add_modify_removeW')) { ask_from__add_modify_removeW($o, $title, $message, $l, %callback); } else { -- cgit v1.2.1