summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-26 23:05:37 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-26 23:05:37 +0000
commitaf30e725b90a6585e1525ab893363e961eec1452 (patch)
tree115c4cc081fb32e241578b02a7f6a0066899b5fd
parentad53729f0a598c50eccf0acd3e2271a945ee4b7e (diff)
downloadurpmi-af30e725b90a6585e1525ab893363e961eec1452.tar
urpmi-af30e725b90a6585e1525ab893363e961eec1452.tar.gz
urpmi-af30e725b90a6585e1525ab893363e961eec1452.tar.bz2
urpmi-af30e725b90a6585e1525ab893363e961eec1452.tar.xz
urpmi-af30e725b90a6585e1525ab893363e961eec1452.zip
do not wrongly tell we updated the unrequested package list when we
didn't (eg: when not having the proper rights) (mga#7167)
-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));