diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-15 16:27:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-15 16:27:23 +0000 |
commit | 32b3f470f378c7b191e9d2aee44d41fc799f5421 (patch) | |
tree | f545f039433783c6d00e7970de4dca1ee3dbd408 | |
parent | 853e6ac14935405d8f4d7bcfd6394dc498d37aca (diff) | |
download | urpmi-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.pm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |