Package: debmirror
Version: 20070123
Severity: important
Tags: patch

Attempting a partial mirror with

debmirror test/ \
    --method=rsync --root=:debian --host=ftp.ch.debian.org \
    --dist="etch,lenny,sid" \
    --arch="i386,amd64,powerpc" \
    --section="main,contrib,non-free,main/debian-installer" \
    --cleanup \
    --source \
    --getcontents \
    --ignore-missing-release \
    --ignore-release-gpg \
    --ignore-small-errors \
    --pdiff=none

fails with the following error messages

Errors:
 Ignoring missing Release file for 
dists/etch/main/debian-installer/source/Sources.gz
 Download of dists/etch/main/debian-installer/source/Sources.gz failed
 Ignoring missing Release file for 
dists/lenny/main/debian-installer/source/Sources.gz
 Download of dists/lenny/main/debian-installer/source/Sources.gz failed
 Ignoring missing Release file for 
dists/sid/main/debian-installer/source/Sources.gz
 Download of dists/sid/main/debian-installer/source/Sources.gz failed
Failed to download some Package, Sources or Release files!

Those messages have an obvious reason: Debian Installer's source is not
under debian-installer/source. The bug is triggered when asking
for sources while attempting to mirror main/debian-installer.
The following patch fixes the problem by skipping Sources download
for the debian-installer section.

699c699
<     if ($do_source) {
---
>     if ($do_source && $section !~ /debian-installer/) {
747c747,749
<     get_index("dists/$dist/$section/source", "Sources") if ($do_source);
---
>     if (! ($section =~ "debian-installer" )) {
>       get_index("dists/$dist/$section/source", "Sources") if ($do_source);
>     }


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.9-1-core2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debmirror depends on:
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
ii  libcompress-zlib-perl         2.012-1    Perl module for creation and manip
ii  libdigest-sha1-perl           2.11-2+b1  NIST SHA-1 message digest algorith
ii  liblockfile-simple-perl       0.206-1    Simple advisory file locking
ii  libwww-perl                   5.813-1    WWW client/server library for Perl
ii  perl [libdigest-md5-perl]     5.10.0-19  Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.10.0-19  Core Perl modules
ii  rsync                         3.0.3-2    fast remote file copy program (lik

Versions of packages debmirror recommends:
ii  ed                        0.7-3          The classic unix line editor
ii  gnupg                     1.4.9-3+lenny1 GNU privacy guard - a free PGP rep
ii  patch                     2.5.9-5        Apply a diff file to an original

debmirror suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to