On Tue, 2005-02-15 at 17:06 +0100, Benjamin Collar wrote:
> Oh, I thought of some ways people could help me out here in an
> independent fashion, if anyone's got the gumption:
> 
> 1) write a function that, given a package name (like dev-apps/xyz),
> return the name of the latest ebuild (i.e xyz-2.3-p2.ebuild)

This would require a comple list of all available packages. I guess a
complete portage tree is out of the question for embedded.

What I did with my apk (yes, i'd like to use embedded emerge if it was
possible) was I added a Packages.sha1.gz file together with the binary
packages.

If there is a list containing all the packages, an index, it would be
possible do something like:

wget -O - $PACKAGE_PATH/Packagelist | grep "$PACKAGE-[0-9]*"

Both the wget and grep code is included in busybox but I don't know if
there is any gentoo policy saying that there should be included a file
list in the binary repository.

--
Natanael Copa


--
[email protected] mailing list

Reply via email to