On May 22, 2008, at 1:56 AM, William Siegrist wrote:
Could I get a review of this patch from someone with some base experience to make sure this wont break anything. I believe it'll be seamless for end users and is the simplest change to make the mirror layout the way I want it to.
Why would people be browsing the mirrored files? Wouldn't the interaction with the site mostly just be 'port' downloading a mirrored file?
Also, without some sort of migration for currently saved distfiles, we end up orphaning all of the currently saved distfiles on a machine (I've got one machine with about 1GB of old distfiles). At the very least, we need to make port clean --dist be able to remove distfiles from both the old and new locations.
On May 21, 2008, at 10:46 PM, MacPorts wrote:#15395: Use primary port category for fetched distfile layout------------------------------------ +--------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: Keywords: fetch mirror distfiles |------------------------------------ +--------------------------------------- The distfile directory ($prefix/var/macports/distfiles/) currently uses 1 level of directory based on port name. This means mirroring also uses thesingle directory level.I propose to use the primary category to layout mirrors and distfiles withan additional directory. The main reason for this is the layout on distfiles.macports.org. We need the 2 layers of directories to make browsing more managable. The change will be mostly invisible to users as far as their localinstallations are concerned. This will make distfiles match the layout ofPortfiles in the svn and rsync repositories.The simplest fix, and the one I provide a patch for here, is to read thecategories value and set distpath accordingly during fetch_init. Thisaffects all fetching and mirroring. The only impact I see to end users isif they pre-fetch something, upgrade to the patched code, then try toinstall. The distfile would be in the wrong place and re-fetched. Thiscase seems rare and a minor inconvenience at that.
-- Daniel J. Luke +========================================================+ | *---------------- [EMAIL PROTECTED] ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
