summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 29459d3c..99c5ac02 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2882,7 +2882,8 @@ sub extract_packages_to_install {
foreach (keys %$sources) {
my $pkg = $urpm->{depslist}[$_] or next;
- $pkg->flag_disable_obsolete and $inst{$pkg->id} = delete $sources->{$pkg->id};
+ $pkg->flag_disable_obsolete || !$pkg->flag_installed
+ and $inst{$pkg->id} = delete $sources->{$pkg->id};
}
\%inst;