summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
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 /urpm/orphans.pm
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)
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm1
1 files changed, 1 insertions, 0 deletions
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));