Fixed an error in downloading source packages from peers.
authorCameron Dale <camrdale@gmail.com>
Thu, 24 Apr 2008 03:52:11 +0000 (20:52 -0700)
committerCameron Dale <camrdale@gmail.com>
Thu, 24 Apr 2008 03:52:11 +0000 (20:52 -0700)
commitaafdc40ed1f4b5355bdf23365dc9d48f74cc8761
tree3b832121074e795f51c28c8063081928e2ca1e59
parentf4a766dc7a62e2a100cd62e3e7c159c5fb16e32a
Fixed an error in downloading source packages from peers.

Source packages with no pieces were hash checked with sha1, which would fail.
Also added a test for source packages.
Also removed some unneeded logging in the peer downloader.
apt_p2p/Hash.py
apt_p2p/PeerManager.py
test.py