Summary: | p2p distfiles mirror | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jon Hood (RETIRED) <squinky86> |
Component: | Current packages | Assignee: | Jon Hood (RETIRED) <squinky86> |
Status: | RESOLVED LATER | ||
Severity: | normal | CC: | fava, gent_bz, net-p2p, Titeuf |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jon Hood (RETIRED)
![]() Work has started, but the problem I am having is that the file the script is going to need to download must check the file before downloading it to make sure it is the right one. I recommend doing this by sending the download script the size of the file. I could make the script read from the digest in the /files directory of the package; any suggestions on this? As of right now, all the script does is search for the file from the gift daemon and return the URL in a format that can be sent right back to the gift daemon to download the file: http://portage.squinky.gotdns.com/projects/p2phportage.phps note that this script is VERY incomplete and only meant to be a proof of concept. e.x.: <start giftd> $ ./p2phportage.php monkeys a That second parameter will be either the file size or the path to the ebuild so that the script can read the digest file to get the filesize from there- whichever is easier to implement. This is external from portage, portage integration pretty much comes down to a custom FETCHCOMMAND, or a sync module for cvs head... so, yanking portage from cc. Poke us if this gets going. |