• Bug#265575: debmirror: temporary {Package, Sources}.gz files misbehavio

    From Eric Wong@1:229/2 to All on Fri Aug 13 22:00:18 2004
    From: [email protected]

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

    It died when trying to gzopen a Packages.gz or Sources.gz file:

    .temp/dists/experimental/main/binary-i386/Packages.gz: No such file or directory at /usr/bin/debmirror line 566.
    releasing 1 pending lock... at /usr/lib/perl5/LockFile/Simple.pm line 182. Parse Packages and Sources files and add to the file list everything therein.

    My command-line invocation was:

    debmirror --verbose --ignore-missing-release --dist=sid,sarge,woody,experimental,sarge-proposed-updates,woody-proposed-updates /home/eric/debian --getcontents -e rsync -r :debian -h mirrors.kernel.org

    This fixes it:

    --- /usr/bin/debmirror 2004-08-05 09:56:21.000000000 -0700
    +++ ./debmirror.20040813 2004-08-13 11:25:16.000000000 -0700
    @@ -1106,12 +1106,14 @@
    }
    }
    }
    - push @package_files, "$tempdir/$subdir/Packages.gz";
    + if (-e "$tempdir/$subdir/Packages.gz") {
    + push @package_files, "$tempdir/$subdir/Packages.gz";
    + $files{"$tempdir/$subdir/Packages.gz"}=1;
    + }
    $files{"$subdir/Packages.gz"}=1;
    $files{"$subdir/Packages.bz2"}=1;
    $files{"$subdir/Packages"}=1;
    $files{"$subdir/Release"}=1;
    - $files{"$tempdir/$subdir/Packages.gz"}=1;
    $files{"$tempdir/$subdir/Packages.bz2"}=1;
    $files{"$tempdir/$subdir/Packages"}=1;
    $files{"$tempdir/$subdir/Release"}=1;
    @@ -1180,12 +1182,14 @@
    }
    }
    }
    - push @source_files, "$tempdir/$subdir/Sources.gz";
    + if (-e "$tempdir/$subdir/Sources.gz") {
    + push @source_files, "$tempdir/$subdir/Sources.gz";
    + $files{"$tempdir/$subdir/Sources.gz"}=1;
    + }
    $files{"$subdir/Sources.gz"}=1;
    $files{"
  • From Goswin von Brederlow@1:229/2 to Eric Wong on Mon Aug 16 10:30:14 2004
    From: [email protected]

    Eric Wong <[email protected]> writes:

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

    It died when trying to gzopen a Packages.gz or Sources.gz file:

    .temp/dists/experimental/main/binary-i386/Packages.gz: No such file or directory at /usr/bin/debmirror line 566.
    releasing 1 pending lock... at /usr/lib/perl5/LockFile/Simple.pm line 182. Parse Packages and Sources files and add to the file list everything therein.

    That looks more like a download failure to me.

    My command-line invocation was:

    debmirror --verbose --ignore-missing-release --dist=sid,sarge,woody,experimental,sarge-proposed-updates,woody-proposed-updates /home/eric/debian --getcontents -e rsync -r :debian -h mirrors.kernel.org

    First, you should never use --ignore-missing-release for a Debian
    mirror. The release files are essential for the security of a mirror
    and needed to sanity check downloading. rsync does not give proper
    error return codes due to the way include/exclude works so using the
    Release files is the only way to check. I see that debmirror fails
    because experimental has no debian-installer and I will add a fix for
    that.

    Secondly, looking at mirror.kernel.org, I see that dists/experimental
    is a link. rsync won't follow links and won't download the files from
    within experimental with the default flags. Adding a "-L" to the rsync
    options solves that problem. Since the official debian mirror are
    completly pool driven now (no more link farm for potato/woody) it
    should be save to add -L per default.

    Third, the proposed-updates have no Contents files so they will always
    fail too. I will add a fix for that too.


    If you try e.g. the http method you get:

    Getting: dists/experimental/main/debian-installer/binary-i386/Packages.gz... dists/experimental/main/debian-installer/binary-i386/Packages.gz failed 404 Not Found
    Getting: dists/sarge-proposed-updates/Contents-i386.gz... dists/sarge-proposed-updates/Contents-i386.gz failed 404 Not Found
    Getting: dists/woody-proposed-updates/Contents-i386.gz... dists/woody-proposed-updates/Contents-i386.gz failed 404 Not Found
    Failed to download some Package, Sources, Contents or release files!
    releasing 1 pending lock... at /usr/lib/perl5/LockFile/Simple.pm line 182.


    MfG
    Goswin


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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)