Reorder the main application to find cached hashes before checking freshness.
authorCameron Dale <camrdale@gmail.com>
Sat, 19 Apr 2008 18:39:24 +0000 (11:39 -0700)
committerCameron Dale <camrdale@gmail.com>
Sat, 19 Apr 2008 18:39:24 +0000 (11:39 -0700)
commitdbcab5189211e7e072c6477d651d578509cd0e0b
tree0a82ec2e3aae6675e4fbe265cde96dc8c17629ae
parenta4d25dfe9500adbd16f3dd570ad6f3cf32e2775e
Reorder the main application to find cached hashes before checking freshness.

Eliminates some unnecessary HEAD requests to the server.
HEAD requests are only done if there is no hash for the file.
apt_p2p/HTTPServer.py
apt_p2p/__init__.py
apt_p2p/apt_p2p.py