From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j26CX8cO032716 for ; Sun, 6 Mar 2005 12:33:09 GMT Received: from p061198140149.ppp.prin.ne.jp ([61.198.140.149] helo=localhost.localdomain) by smtp.gentoo.org with esmtpa (Exim 4.42) id 1D7uwO-0002St-Nd; Sun, 06 Mar 2005 12:33:02 +0000 Received: by localhost.localdomain (Postfix, from userid 1000) id F0F6910193D; Sun, 6 Mar 2005 21:32:12 +0900 (JST) From: Jason Stubbs Subject: [gentoo-dev] Re: For starters.. requirements of the portage API Date: Sun, 6 Mar 2005 21:32:11 +0900 User-Agent: KMail/1.8 Cc: gentoo-dev@robin.gentoo.org, dev-portage@gentoo.org References: <1110086845.14682.8.camel@secures> <422AEE8A.40601@telia.com> <1110110979.31097.23.camel@localhost> In-Reply-To: <1110110979.31097.23.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-To: gentoo-dev@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Content-Disposition: inline To: "Undisclosed.Recipients": ; Message-Id: <200503062132.11834.jstubbs@gentoo.org> X-Archives-Salt: ffa58d83-a3c4-4433-9ae7-e22a6fedd866 X-Archives-Hash: f1755126a518cde2cbfb62bd417e09c3 On Sunday 06 March 2005 21:09, Patrick Lauer wrote: > On Sun, 2005-03-06 at 12:50 +0100, Fredrik Klasson wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Chris White wrote: > > | 2) access to an internal download library built into portage (not wget > > | or some such). This would not only allow us to do basic downloading, > > | but also address new protocols that come later on. > > > > uhm, just a radnom thought struck me, why re-invent the wheel? What I'm > > thinking is that, why not simply provide some Download Abstraction Layer > > (DAL) or something like that, ie, "downloadThisFileForMe(filename);" > > I think that was the idea. > You tell portage "use that download wrapper" in a config file, then just > invoke "portage.fetch("URI") I think URI is even taking it too far. Even fetching of individual files doesn't seem to be required. All that's really needed is to tell portage to fetch the required files for any particular package. If you want to be able to download individual files for use outside of portage then you'll need to know where they are going and whatever else. If you want all that, you can grab the URI from SRC_URI and do it manually. Regards, Jason Stubbs -- gentoo-dev@gentoo.org mailing list