summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--urpm/orphans.pm1
2 files changed, 5 insertions, 0 deletions
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: <root>/var/lib/rpm/installed-through-deps.list
sub _write_unrequested_list__file {
my ($urpm, $unreq) = @_;
+ return if $>;
$urpm->{info}("writing " . unrequested_list__file($urpm));