From 749f539ddb2a29af2572dd7d10b52346b462d695 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 24 Nov 2009 13:28:29 +0000 Subject: (handle_need_restart) do not advice to reboot when inside a chroot --- NEWS | 1 + urpm/main_loop.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index 1b6b117a..76d49bae 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- do not advice to reboot when inside a chroot - do not cache media.cfg from the media when using a virtual one (ie a medium for which we don't want to cache metadata) - ignore gpg_pubkey packages in urpmq --not-available diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 31d09dea..2bab5069 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -362,6 +362,7 @@ if ($nok) { sub handle_need_restart { my ($urpm, $state, $callbacks) = @_; + return if $urpm->{root}; return if !$callbacks->{need_restart}; if (intersection([ keys %{$state->{selected}} ], -- cgit v1.2.1