summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-15 16:27:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-15 16:27:23 +0000
commit32b3f470f378c7b191e9d2aee44d41fc799f5421 (patch)
treef545f039433783c6d00e7970de4dca1ee3dbd408
parent853e6ac14935405d8f4d7bcfd6394dc498d37aca (diff)
downloadurpmi-32b3f470f378c7b191e9d2aee44d41fc799f5421.tar
urpmi-32b3f470f378c7b191e9d2aee44d41fc799f5421.tar.gz
urpmi-32b3f470f378c7b191e9d2aee44d41fc799f5421.tar.bz2
urpmi-32b3f470f378c7b191e9d2aee44d41fc799f5421.tar.xz
urpmi-32b3f470f378c7b191e9d2aee44d41fc799f5421.zip
Install uninstalled packages as installs, not as upgrades
-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;