> On 03/22/2010 01:51 PM, Michael Tautschnig wrote:
> >[...]
> >
> >>>As you only want this for a single package and only once, I'd suggest you 
> >>>create
> >>>a hook instsoft.FOO (for a proper class FOO) that does
> >>>
> >>>- create 90mypackage with the above contents
> >>>- apt-get install theonepackage
> >>>- rm 90mypackage
> >>
> >>Hmm. Ok. So by using apt-get in the hook-script I also have to
> >>remove the package from the PACKAGE_CONFIG-entry? Right?
> >
> >This should not be necessary, no. Having the package in the package_config/X
> >just becomes a no-op as it is installed already.
> 
> Ok. But I should have mentionend that the same class is used to
> install a new machine with this package.
> Don't I have to add some logic to disable the "apt-get install" when
> detecting FAI_ACTION=install?
> 

Well, it shouldn't matter too much as confnew and confold should not make a
difference. If it does, you can easily wrap this in an

if [ $FAI_ACTION != "install" ] ; then
  blablabla
fi

Best,
Michael

Attachment: pgpdJM3qrIh57.pgp
Description: PGP signature

Antwort per Email an