Package: debmirror
Version: 20051209
Severity: wishlist
Tags: patch

I maintain an archive that contains a main/debian-installer section
which includes source, however debmirror is hardcoded to ignore this
source as the debian mirror convention is to not include it there.

This patch adds an option to override this behavior.

--- /usr/bin/debmirror  2005-12-09 11:52:36.000000000 -0700
+++ /tmp/debmirror      2006-08-09 14:53:34.000000000 -0600
@@ -234,6 +234,13 @@
 
 Don't fail if the Release.gpg file is missing.
 
+=item --include-di-source
+
+Official debian mirrors do not have source in the main/debian-installer
+section so no attempt is made to fetch this source by default. This
+option overrides this behavior and causes debmirror to look for source
+under main/debian-installer.
+
 =item --dry-run
 
 Simulate a mirror run. This will still download the meta files to .temp
@@ -379,6 +386,7 @@
 our $bytes_gotten=0;
 our $ignore_release=0;
 our $ignore_release_gpg=0;
+our $include_di_source=0;
 our $start_time = time;
 our $dry_run=0;
 our $dry_run_var=0;
@@ -428,6 +436,7 @@
           'rsync-batch=s'  => \$rsync_batch,
           'ignore-missing-release' => \$ignore_release,
           'ignore-release-gpg' => \$ignore_release_gpg,
+          'include-di-source' => \$include_di_source,
           'dry-run'      => \$dry_run_var,
           'proxy=s'      => \$proxy,
           'rsync-options=s' => \$rsync_options,
@@ -682,7 +691,7 @@
     }
     # d-i has no sources over there, sources are in main
     get_sources("dists/$dist/$section/source")
-      unless $section =~ /debian-installer/;
+      unless ($section =~ /debian-installer/ && !$include_di_source);
   }
 }
 foreach (@extra_dirs) {

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: ia64
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-mckinley
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages debmirror depends on:
ii  bzip2                         1.0.3-3    high-quality block-sorting file co
ii  libcompress-zlib-perl         1.41-1     Perl module for creation and manip
ii  liblockfile-simple-perl       0.2.5-7    Simple advisory file locking
ii  libwww-perl                   5.805-1    WWW client/server library for Perl
ii  perl [libdigest-md5-perl]     5.8.8-6.1  Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.8.8-6.1  Core Perl modules
ii  rsync                         2.6.8-2    fast remote file copy program (lik

Versions of packages debmirror recommends:
ii  gnupg                         1.4.5-1    GNU privacy guard - a free PGP rep

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to