diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-02 18:17:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-02 18:17:10 +0000 |
commit | 90f641ffef6ea053458842359662e7d5399e7697 (patch) | |
tree | b29d07b4a3ce2432235663794aed91c30f0b8c00 /Rpmdrake/pkg.pm | |
parent | d79c4b9acecaf234381b749dbfc835b32166d6d6 (diff) | |
download | rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.gz rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.bz2 rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.xz rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.zip |
(get_pkgs) explain
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-x | Rpmdrake/pkg.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index c7ce590e..122af691 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -425,6 +425,9 @@ sub get_pkgs { } $all_pkgs{$_}{pkg}->set_flag_installed foreach @installed_pkgs; + + # urpmi only care about the first medium where it found the package, + # so there's no need to list the same package several time: @installable_pkgs = uniq(@installable_pkgs); +{ urpm => $urpm, |