Comment 0 for bug 157362

Revision history for this message
vroetman (vroetman) wrote :

Binary package hint: debmirror

On upgrade to Gutsy, it broke debmirror. In fact, on execution it deletes everything in the destination repository when using --cleanup

The problem is line on 793 of the Parse Packages and Sources files section:
local $/="\n\n";
which conflicts with Compress::Zlib's gzreadline()
The current version of gzreadline does not ignore $/ but the previous version did.
Thus debmirror reads in a while block at a time rather than a line at a time.

Deleting this line solves the problem.

Here is the debmirror command I was using:

debmirror --host="server" --user="anonymous" --root="/ubuntu" --method="ftp" --dist="gutsy,gutsy-updates,gutsy-backports,gutsy-security" --section="main,restricted,universe,multiverse" --arch="i386" --nosource --cleanup --verbose --ignore-release-gpg ubuntu