summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-27 15:51:58 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-27 15:51:58 +0000
commit2c647329d1253cabcfe7628376370cb13c311a2e (patch)
tree7c0147470bfa2ca45d1560be55cbb7334dca8ac1 /urpm
parent7c418f8e34a3e73dbc00fb5632c0f11e0cc3fbc5 (diff)
downloadurpmi-2c647329d1253cabcfe7628376370cb13c311a2e.tar
urpmi-2c647329d1253cabcfe7628376370cb13c311a2e.tar.gz
urpmi-2c647329d1253cabcfe7628376370cb13c311a2e.tar.bz2
urpmi-2c647329d1253cabcfe7628376370cb13c311a2e.tar.xz
urpmi-2c647329d1253cabcfe7628376370cb13c311a2e.zip
only load LDAP binding if needed (saves a couple MB in rpmdrake)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/ldap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/ldap.pm b/urpm/ldap.pm
index a2ab1e56..cfc4f142 100644
--- a/urpm/ldap.pm
+++ b/urpm/ldap.pm
@@ -7,7 +7,6 @@ use warnings;
use urpm;
use urpm::util;
use urpm::msg 'N';
-require Net::LDAP;
(our $VERSION) = q($Revision$) =~ /(\d+)/;
@@ -168,6 +167,7 @@ sub load_ldap_media {
}
eval {
+ require Net::LDAP;
my $ldap = Net::LDAP->new($config->{uri})
or die N("Cannot connect to ldap uri:"), $config->{uri};