From 5be8ced0798f549f7c974d156b821afa9c9c233f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 1 Oct 2009 11:32:19 +0000 Subject: (do_action__real) enable to apply priority updates without trying to select any package --- Rpmdrake/gui.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake/gui.pm') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index e1d0abbc..7241dbae 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -799,7 +799,7 @@ sub do_action__real { $urpm->{fatal}(1, N("Error: %s appears to be mounted read-only.", $urpm::sys::mountpoint)); return 1; } - if (!int(grep { $pkgs->{$_}{selected} } keys %$pkgs)) { + if (!$Rpmdrake::pkg::need_restart && !int(grep { $pkgs->{$_}{selected} } keys %$pkgs)) { interactive_msg(N("You need to select some packages first."), N("You need to select some packages first.")); return 1; } -- cgit v1.2.1