From 74d08af970f7b2362c8a6d15770bcdb8739db4f5 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 17 May 2005 01:38:58 +0000 Subject: Factorize and sort option names --- urpm/ldap.pm | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'urpm/ldap.pm') diff --git a/urpm/ldap.pm b/urpm/ldap.pm index 4faa4653..7be15926 100644 --- a/urpm/ldap.pm +++ b/urpm/ldap.pm @@ -2,32 +2,14 @@ package urpm::ldap; use strict; use warnings; +use urpm; use urpm::msg 'N'; use Net::LDAP; use MDK::Common; -my $LDAP_CONFIG_FILE = '/etc/ldap.conf'; -# FIXME duplication -my @per_media_opt = qw( - downloader - ftp-proxy - hdlist - http-proxy - ignore - key-ids - list - md5sum - noreconfigure - priority - priority-upgrade - removable - synthesis - update - verify-rpm - virtual - with_hdlist -); +our $LDAP_CONFIG_FILE = '/etc/ldap.conf'; +my @per_media_opt = (@urpm::PER_MEDIA_OPT, qw(ftp-proxy http-proxy)); # TODO # use srv dns record ? -- cgit v1.2.1