From 69b6ad5a9f8e3fc4c1e44d14857787e834386311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sat, 25 Mar 2017 00:08:13 +0100 Subject: Do not mention orphans when (un)installing packages (mga#14594) --- NEWS | 2 ++ Rpmdrake/pkg.pm | 16 ---------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/NEWS b/NEWS index 1a733a5f..ec491988 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- do not mention orphans when (un)installing packages (mga#14594) + Version 6.24 - 11 March 2017, RĂ©mi Verschelde - add tooltips to arch & status columns (mga#7962) diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 3560f721..bd65344c 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -903,14 +903,6 @@ you may now inspect some in order to take actions:"), statusbar_msg_remove($statusbar_msg_id); #- XXX maybe remove this - if ($exit_code == 0 && !$::rpmdrake_options{auto_orphans}) { - if (urpm::orphans::check_unrequested_orphans_after_auto_select($urpm)) { - if (my $msg = urpm::orphans::get_now_orphans_gui_msg($urpm)) { - interactive_msg(N("Orphan packages"), $msg, scroll => 1); - } - } - } - return_with_exit_code: $something_installed = gurpm::RPMProgressDialog::get_something_done(); return !($something_installed || scalar(@to_remove)); @@ -929,9 +921,6 @@ sub perform_removal { my $_gurpm_clean_guard = before_leaving { $gurpm->destroy }; $urpm->{nb_install} = @toremove; - my $may_be_orphans = 1; - urpm::orphans::unrequested_orphans_after_remove($urpm, \@toremove) - or $may_be_orphans = 0; my @results; slow_func_statusbar( @@ -954,11 +943,6 @@ sub perform_removal { ); return 1; } else { - if ($may_be_orphans && !$::rpmdrake_options{auto_orphans}) { - if (my $msg = urpm::orphans::get_now_orphans_gui_msg($urpm)) { - interactive_msg(N("Information"), $msg, scroll => 1); - } - } return 0; } } -- cgit v1.2.1