summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-24 13:28:29 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-24 13:28:29 +0000
commit749f539ddb2a29af2572dd7d10b52346b462d695 (patch)
treed6c6e58370598b3580d7c3f20caef8056fa6a066
parenteef683b8da9f12d5221804d79c26997c76745ce7 (diff)
downloadurpmi-749f539ddb2a29af2572dd7d10b52346b462d695.tar
urpmi-749f539ddb2a29af2572dd7d10b52346b462d695.tar.gz
urpmi-749f539ddb2a29af2572dd7d10b52346b462d695.tar.bz2
urpmi-749f539ddb2a29af2572dd7d10b52346b462d695.tar.xz
urpmi-749f539ddb2a29af2572dd7d10b52346b462d695.zip
(handle_need_restart) do not advice to reboot when inside a chroot
-rw-r--r--NEWS1
-rw-r--r--urpm/main_loop.pm1
2 files changed, 2 insertions, 0 deletions
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}} ],