aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 15:37:58 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 15:37:58 +0000
commit7416fc537c6f60b0bd82fad024a4bf905bb9ccb8 (patch)
tree98849ea80e612e2b800d032b94377f73efb0ae91 /Rpmdrake
parentcc060b11ce4c7ce6c86ff71def641d73b22909e9 (diff)
downloadrpmdrake-7416fc537c6f60b0bd82fad024a4bf905bb9ccb8.tar
rpmdrake-7416fc537c6f60b0bd82fad024a4bf905bb9ccb8.tar.gz
rpmdrake-7416fc537c6f60b0bd82fad024a4bf905bb9ccb8.tar.bz2
rpmdrake-7416fc537c6f60b0bd82fad024a4bf905bb9ccb8.tar.xz
rpmdrake-7416fc537c6f60b0bd82fad024a4bf905bb9ccb8.zip
(perform_installation) handle 'allow-force' and 'allow-nodeps' options
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/pkg.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index a8c0f8ce..216a20c9 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -608,7 +608,13 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
},
inst => $callback_inst,
trans => $callback_inst,
- ask_yes_or_no => sub { }, # FIXME: allow-force & the like weren't previously implemented
+ ask_yes_or_no => sub {
+ # handle 'allow-force' and 'allow-nodeps' options:
+ my ($title, $msg) = @_;
+ local $::main_window = $Rpmdrake::gurpm::mainw->{real_window};
+ interactive_msg($title, $msg, yesno => 1, if_(10 < $msg =~ tr/\n/\n/, scroll => 1),
+ ) or goto return_with_exit_code;
+ },
message => sub {
my ($message) = @_;
interactive_msg(N("Error"), $message, yesno => 1);