[Aptitude-devel] Bug#738785: aptitude: (remote) changelogs is broken after packages.d.o move to https

Raphael Geissert geissert at debian.org
Thu Feb 13 09:27:47 UTC 2014


Hi Julien,

On 13 February 2014 00:26, Julien Cristau <jcristau at debian.org> wrote:
[...]
> Seems to be an apt "feature".  After patching it out with
>
> diff --git a/methods/server.cc b/methods/server.cc
> index e12c23c..e07599c 100644
> --- a/methods/server.cc
> +++ b/methods/server.cc
> @@ -294,7 +294,7 @@ ServerMethod::DealWithHeaders(FetchResult &Res)
>           NextURI = DeQuoteString(Server->Location);
>           URI tmpURI = NextURI;
>           // Do not allow a redirection to switch protocol
> -         if (tmpURI.Access == "http")
> +         if (1 || tmpURI.Access == "http")
>              return TRY_AGAIN_OR_REDIRECT;
>        }
>        /* else pass through for error message */

Yes, that's intentional as you should really not switch between
protocols. In squeeze it won't work as the redirections are handled
locally by the method instead of being pushed back to the apt process.
Moreover, it will probably fail in a not very helpful way if the https
method is not installed.

[...]
> I still get a message like this, though:
>
> W: Size of file /tmp/apt-changelog-TfnbZ1changelog is not what the server reported 77136 338

Yeah, that's possible. I don't think anybody tested that protocol
switching worked.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



More information about the Aptitude-devel mailing list