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) --- urpm/orphans.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'urpm') 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