On Tue, 2011-02-08 at 08:14 +1300, Michael Hope wrote:
On Tue, Feb 8, 2011 at 5:50 AM, Guilherme Salgado guilherme.salgado@linaro.org wrote:
In lmc we already have some code which checks if a given utility is present and if not, install (via apt-get) a package which provides that.
(I don't like that - am I prompted first? A script shouldn't be allowed to install packages on my machine)
Right now it may install stuff automatically, but we plan to have it do so only with the user's consent: https://bugs.launchpad.net/linaro-image-tools/+bug/704029
We could extend it to check for a specific version and try to install a version greater or equal that (can we tell apt-get to install only if it finds a package whose version is greater than X?).
I ran into the same CP15 problem a few days ago and was left with a l-m-c that was stuck waiting for QEMU. It wasn't obvious what to do next. I like the idea of an explicit version check but you will need to tie the l-m-c, qemu, and hwpack versions together.
-- Michael