aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-24 03:45:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-24 03:45:46 +0000
commit58fc8e63b0429dcd36d10cc0163504403c184737 (patch)
tree836b7eae19feb48ad54f1c69199d272d2627dcc0 /rpmdrake
parent74be4b771450ab8ed0c2eabe06bb9395a898f514 (diff)
downloadrpmdrake-58fc8e63b0429dcd36d10cc0163504403c184737.tar
rpmdrake-58fc8e63b0429dcd36d10cc0163504403c184737.tar.gz
rpmdrake-58fc8e63b0429dcd36d10cc0163504403c184737.tar.bz2
rpmdrake-58fc8e63b0429dcd36d10cc0163504403c184737.tar.xz
rpmdrake-58fc8e63b0429dcd36d10cc0163504403c184737.zip
One can't update media when not root.
Diffstat (limited to 'rpmdrake')
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index f3eaab63..8b81cac4 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1044,7 +1044,7 @@ Is it ok to continue?",
Gtk2::Button->new(but_($MODE eq 'remove' ? N("Remove") : N("Install"))),
clicked => sub { $do_action->() },
),
- 0, gtksignal_connect(
+ 0, my $update_button = gtksignal_connect(
Gtk2::Button->new(but_(N("Update media"))),
clicked => sub {
update_sources_interactive($urpm, transient => $w->{rwindow})
@@ -1065,7 +1065,7 @@ Is it ok to continue?",
),
);
$show_selections_button and $show_selections_button->set_active(!$dont_show_selections);
- $> and $action_button->set_sensitive(0);
+ $> and $action_button->set_sensitive(0), $update_button->set_sensitive(0);
$find_entry->grab_focus;
$w->{window}->set_default_size($typical_width*2.7, 500) if !$::isEmbedded;