aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-01-23 17:29:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-01-23 17:29:51 +0000
commit69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84 (patch)
tree93d2c02f514a3f01e81fd29444acb7217ba35900 /Rpmdrake/gui.pm
parent12d989fc9f88ccb10167cfc50ad75f33d53a1699 (diff)
downloadrpmdrake-69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84.tar
rpmdrake-69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84.tar.gz
rpmdrake-69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84.tar.bz2
rpmdrake-69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84.tar.xz
rpmdrake-69fa39ec3904344f8f3c9e3c247dd7a46b4bfa84.zip
(ask_browse_tree_given_widgets_for_rpmdrake) prevent selecting
basesystem packages earlier (#36367)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 7ef778d4..e9473703 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -376,6 +376,13 @@ sub ask_browse_tree_given_widgets_for_rpmdrake {
my $_cleaner = before_leaving { gtkset_mousecursor_normal($w->{w}{rwindow}->window) };
my $name = $w->{detail_list_model}->get($iter, $pkg_columns{text});
my $urpm_obj = $pkgs->{$name}{pkg};
+
+ if ($urpm_obj->flag_base) {
+ interactive_msg(N("Warning"),
+ N("Removing package %s would break your system", $name));
+ return '';
+ }
+
if ($urpm_obj->flag_skip) {
interactive_msg(N("Warning"), N("The \"%s\" package is in urpmi skip list.\nDo you want to select it anyway?", $name), yesno => 1) or return '';
$urpm_obj->set_flag_skip(0);