aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-02 18:17:10 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-02 18:17:10 +0000
commit90f641ffef6ea053458842359662e7d5399e7697 (patch)
treeb29d07b4a3ce2432235663794aed91c30f0b8c00
parentd79c4b9acecaf234381b749dbfc835b32166d6d6 (diff)
downloadrpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar
rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.gz
rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.bz2
rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.tar.xz
rpmdrake-90f641ffef6ea053458842359662e7d5399e7697.zip
(get_pkgs) explain
-rwxr-xr-xRpmdrake/pkg.pm3
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,