Here's a fix for apt.  Basically, the URI class tests whether or not
it's epmty by checking whether the Access string (ie, "http") is empty.
The only URI methods where that's actually the case are "file" and
"copy"; the rest require both the Access string and the Host string.

So, the attached patch changes URI::empty() to check if the Access and
Host strings are empty; if either of them are, then consider the URI to
be empty.  Special case "file" and "copy", allowing them to have an
empty Host string.

A better fix might be to drop URI::empty altogether, and have the
individual methods check whether or not they've been fed a valid string.
That would be a much larger fix though.

-- 
Acquire::http::proxy breaks things with apt proxies like apt-cacher
https://launchpad.net/bugs/55813

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to