From 478c89356f66dd86488242e877b7b6a88e7218a8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 1 Jun 2009 14:49:09 +0000 Subject: (perform_installation) do not restart if we didn't install any package (when having priority packages) --- NEWS | 2 ++ Rpmdrake/pkg.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b222b044..90b72910 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ - consider chrooted /etc/product.id when detecting whether installed distro is stable or cooker +- do not restart if we didn't install any package (when having + priority packages) - fix not displaying importance and reasons of updates (#51118) (regression introduced by #50276 fix in 5.16.2) - rpmdrake: diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 3ddca0f8..581ed6b8 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -840,7 +840,7 @@ you may now inspect some in order to take actions:"), ); #- restart rpmdrake if needed, keep command line for that. - if ($need_restart && !$exit_code) { + if ($need_restart && !$exit_code && $something_installed) { log::explanations("restarting rpmdrake"); #- it seems to work correctly with exec instead of system, provided we stop timers #- added --previous-priority-upgrade to allow checking if yet if -- cgit v1.2.1