diff options
Diffstat (limited to 'urpm/msg.pm')
-rw-r--r-- | urpm/msg.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm index c61a9187..f9cd07e1 100644 --- a/urpm/msg.pm +++ b/urpm/msg.pm @@ -102,6 +102,11 @@ sub bug_log { } } +sub ask_yes_or_no { + my ($msg) = @_; + message_input_($msg . N(" (y/N) "), boolean => 1) =~ /[$yesexpr]/; +} + #- deprecated, use message_input_() instead sub message_input { &_message_input } |