summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-28 06:36:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-28 06:36:18 +0000
commit693e214b84e219c5ad88065d538ad764f50e485d (patch)
tree8f92ca02cf220de2fde1d1eadd637286e2cb7022
parent6d8a247430b5ff522d54e6b49225d4bac86286c8 (diff)
downloadurpmi-693e214b84e219c5ad88065d538ad764f50e485d.tar
urpmi-693e214b84e219c5ad88065d538ad764f50e485d.tar.gz
urpmi-693e214b84e219c5ad88065d538ad764f50e485d.tar.bz2
urpmi-693e214b84e219c5ad88065d538ad764f50e485d.tar.xz
urpmi-693e214b84e219c5ad88065d538ad764f50e485d.zip
Add LDAP media at the end
-rw-r--r--urpm/ldap.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/ldap.pm b/urpm/ldap.pm
index 792699d2..2188ef4f 100644
--- a/urpm/ldap.pm
+++ b/urpm/ldap.pm
@@ -147,6 +147,7 @@ sub load_ldap_media($%) {
$config->{host} . ($config->{port} ? ":" . $config->{port} : "") . "/";
}
+ my $priority = 100; #- too add ldap media at the end
eval {
my $ldap = Net::LDAP->new($config->{uri})
or die N("Cannot connect to ldap uri :"), $config->{uri};
@@ -183,6 +184,7 @@ sub load_ldap_media($%) {
#- TODO check if name already defined ?
$medium->{name} = "ldap_" . $medium->{name};
$medium->{ldap} = 1;
+ $medium->{priority} = $priority++;
next if !check_ldap_medium($medium);
$urpm->probe_medium($medium, %options) and push @{$urpm->{media}}, $medium;
write_ldap_cache($urpm,$medium) or $urpm->{log}(N("Could not write ldap cache : %s", $_));