From af30e725b90a6585e1525ab893363e961eec1452 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 26 Aug 2012 23:05:37 +0000 Subject: do not wrongly tell we updated the unrequested package list when we didn't (eg: when not having the proper rights) (mga#7167) --- NEWS | 4 ++++ urpm/orphans.pm | 1 + 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 688933d1..f351f945 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- unrequested package list management (for orphans) (mga#7167): + o do not wrongly tell we updated the unrequested package list when we didn't + (eg: when not having the proper rights such as running urpmq as !root) + Version 7.4 - 24 August 2012 - decrease total package count when some files are missing diff --git a/urpm/orphans.pm b/urpm/orphans.pm index 62b0f79c..dcc82572 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -80,6 +80,7 @@ sub _installed_and_unrequested_lists { #- side-effects: /var/lib/rpm/installed-through-deps.list sub _write_unrequested_list__file { my ($urpm, $unreq) = @_; + return if $>; $urpm->{info}("writing " . unrequested_list__file($urpm)); -- cgit v1.2.1