This is a naive patch for the problem - it probably should be subroutine refence that handles the require and readability checks and so forth, and dies with a sensible error on problems. But this is a first step.
--- /usr/bin/debmirror 2006-07-04 23:59:51.000000000 +0100
+++ debmirror 2006-07-04 23:59:38.000000000 +0100
@@ -384,6 +384,7 @@
our $dry_run_var=0;
our $rsync_options="-aIL --partial";
our $ignore_small_errors=0;
+our $config_file;
my @errlog;
my $HOME;
($HOME = $ENV{'HOME'}) or die "HOME not defined in environment!\n";
@@ -432,10 +433,12 @@
'proxy=s' => \$proxy,
'rsync-options=s' => \$rsync_options,
'ignore-small-errors' => \$ignore_small_errors,
+ 'config-file=s' => \$config_file,
'help' => \$help,
) or usage;
usage if $help;
+require $config_file if defined($config_file) && -r $config_file;
# This parameter is so important that it is the only required parameter.
my $mirrordir=shift or usage("mirrordir not specified");
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : [EMAIL PROTECTED] |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
signature.asc
Description: Digital signature

