Acquire::http::ProxyAutoDetect is executed multiple times for each host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
Invalid
|
Undecided
|
Unassigned | ||
apt (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
For each host that is involved in an update/ installation, APT executes the command set in Acquire:
With a lot of third-party repository sources, this number rises a lot. If the proxy detection command is slow, there might be a delay during the source lists updates and package installations.
Affected versions:
0.8.13.2ubuntu4.1 (Ubuntu Natty)
0.7.25.3ubuntu9.5 (Ubuntu Lucid)
0.8.15.2 (Debian unstable)
Steps to reproduce:
1. Create /etc/apt/
#!/bin/sh
echo CALLED >&2
2. Create /etc/apt/
Acquire:
3. Run sudo apt-get update or install a PPA package which depends on a package from the official repos which is not installed yet
4. Clean up by removing /etc/apt/
What I expected to happen:
CALLED should be printed once
What happened instead:
CALLED is printed a few times for each involved host.
tags: | added: lucid natty |
I can confirm the multiple calls for the ProxyAutoDetect script, following your setup above. I believe proxies can be set for different sources, so I think the auto-detect needs to run for any new source. I mark this bug as wishlist item.