Mageia Bugzilla – Attachment 9153 Details for
Bug 14594
Do not show any message about orphans when using rpmdrake / mgaapplet / drakrpm-update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
remove messages about orphans from rpmdrake, v1
rpmdrake_no_orphans_msg.diff (text/plain), 2.03 KB, created by
Frédéric "LpSolit" Buclin
on 2017-03-25 14:17:53 CET
(
hide
)
Description:
remove messages about orphans from rpmdrake, v1
Filename:
MIME Type:
Creator:
Frédéric "LpSolit" Buclin
Created:
2017-03-25 14:17:53 CET
Size:
2.03 KB
patch
obsolete
>From ebb4418d573a41ddf173af2cf3fe22545396d077 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= <LpSolit@netscape.net> >Date: Sat, 25 Mar 2017 00:08:13 +0100 >Subject: [PATCH] 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 1a733a5..ec49198 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 3560f72..bd65344 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; > } > } >-- >2.10.2 >
From ebb4418d573a41ddf173af2cf3fe22545396d077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= <LpSolit@netscape.net> Date: Sat, 25 Mar 2017 00:08:13 +0100 Subject: [PATCH] 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 1a733a5..ec49198 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 3560f72..bd65344 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; } } -- 2.10.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14594
: 9153