X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=TODO;h=9cef5c7a2e2f8ff2a1326fdfdfddac2cce4119e5;hb=5f57d64912b39b546c724f79eb0a3a15ecce7b0a;hp=2ff301ac1065758b7d606da98e2ce582e1df02d9;hpb=8a9e9644183186c3c88da0b995bb49059408cc75;p=quix0rs-apt-p2p.git diff --git a/TODO b/TODO index 2ff301a..9cef5c7 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,8 @@ -Files for which a hash cannot be found should not be added to the DHT. +Use python-debian for parsing RFC 822 files. -If the hash can't found, it stands to reason that other peers will not -be able to find the hash either. So adding those files to the DHT will -just clutter it with useless information. Examples include Release.gpg, -Release, Translation-de.bz2, and Contents.gz. +There are already routines for parsing these files, so there is no need +to write more. In the AptPackages, change the Release file parsing to +use the python-debian routines. Packages.diff files need to be considered. @@ -15,16 +14,6 @@ distributions. They need to either be ignored, or dealt with properly by adding them to the tracking done by the AptPackages module. -Change file identifier from path to hash. - -Some files can change without changing the path, since the file was -added to the DHT by the peer. Examples are Release, Packages.gz, and -Sources.bz2. This would cause problems when requesting these files by -path. Instead, share the files by hash, then the request would be for -http://127.3.45.9:9977/~, and it would always work. This -will require a database lookup for every request. - - PeerManager needs to download large files from multiple peers. The PeerManager currently chooses a peer at random from the list of