summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 6cec12f5..47ee8409 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -184,6 +184,8 @@ sub read_config {
$urpm->probe_medium($medium, %options) and push @{$urpm->{media}}, $medium;
}
+ eval { require urpm::ldap; urpm::ldap::load_ldap_media($urpm, %options) };
+
#- load default values
foreach (qw(post-clean verify-rpm)) {
exists $urpm->{options}{$_} or $urpm->{options}{$_} = 1;
@@ -377,6 +379,7 @@ sub write_config {
'' => $urpm->{global_config},
};
foreach my $medium (@{$urpm->{media}}) {
+ next if $medium->{external};
my $medium_name = $medium->{name};
$config->{$medium_name}{url} = $medium->{clear_url};
foreach (qw(hdlist with_hdlist list removable key-ids priority priority-upgrade update ignore synthesis virtual)) {