:install and :update
Tim Hemel <[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am using aap to create an OS image. It consists of several components, which
I gave their own subdir with their own aap recipe. I call them from a top
recipe as follows:
@for d in expand2list(_no.Subdirs):
:print $d
:execute {pass} $d/main.aap install
One of the subdirs contains a C program, that I let aap compile, using
:program. However, when I run the top recipe, after succesfully installing
everything from my subdirs, it gives the following message:
Aap: Error in recipe "Default target" line 1: :update failed for "mini_httpd"
Now that is interesting, because I never specified the :update command
somewhere. It must be implicit then, but the manual is not very clear about
this (or I must have overlooked something). From the command reference it
checks whether a program needs to be updated. Exactly what does this do,
what is the intent and how dows it work?
I could perhaps use it for the the rest of my recipe, because currently all
the programs are still copied to my target directory without a check if they
were installed before or not. I tried to implement this test using something
akin to the freebsd ports collection, i.e. touching a file .install_done or
something, but that is not really what I would like. If :update could do this,
or of someone has a good suggestion on how to do that with aap, please let me
know.
Tim
--
Zen Microsystems: we're the om in .commmmmmmmm...
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/