aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-06-01 14:49:09 +0000
committerThierry Vignaud <tv@mandriva.org>2009-06-01 14:49:09 +0000
commit478c89356f66dd86488242e877b7b6a88e7218a8 (patch)
tree7c78be8939ef87546c516ccc4734cf49fa70279b /Rpmdrake/pkg.pm
parentc011edf342ff1cd2d1780fc8447e7dca43eb75ca (diff)
downloadrpmdrake-478c89356f66dd86488242e877b7b6a88e7218a8.tar
rpmdrake-478c89356f66dd86488242e877b7b6a88e7218a8.tar.gz
rpmdrake-478c89356f66dd86488242e877b7b6a88e7218a8.tar.bz2
rpmdrake-478c89356f66dd86488242e877b7b6a88e7218a8.tar.xz
rpmdrake-478c89356f66dd86488242e877b7b6a88e7218a8.zip
(perform_installation) do not restart if we didn't install any package
(when having priority packages)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
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