From 2c647329d1253cabcfe7628376370cb13c311a2e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 27 Jan 2009 15:51:58 +0000 Subject: only load LDAP binding if needed (saves a couple MB in rpmdrake) --- NEWS | 2 ++ urpm/ldap.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 41d0719e..185a93ae 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- only load LDAP binding if needed (saves a couple MB in rpmdrake) + Version 6.21 - 13 January 2009 - drop urpmi.recover 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}; -- cgit v1.2.1