On Fri, 20 Apr 2007 16:40:28 +0200, Lucas C. Villa Real  
<[EMAIL PROTECTED]> wrote:

> On 4/20/07, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
>> On Fri, 20 Apr 2007 14:24:40 +0200, André Detsch <[EMAIL PROTECTED]>
>> wrote:
>>
>> > On 4/20/07, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
>> >> While doing some experiments on Mime database I found that  
>> PostInstall
>> >> is
>> >> only runned by InstallPackage. That means one has to use the  
>> (probably
>> >> exact) same code in the recipe, to have these things done when
>> >> installing
>> >>  from recipe. Wouldn't it be better if PostInstall was called from
>> >> somewhere else (as well)?
>> >
>> > Sure. Sounds like a bug.
>> > PostInstall should be called both by Compile and InstallPackage.
>> >
>> If so, would it be wrong to move this to SymlinkProgram instead (to  
>> avoid
>> doubling the code)?
>
> Then PostInstall will be run every time the user switch versions
> (thinking of GCC 3.x vs 4.x). Since it's a one-line command, I think
> it's ok to duplicate the call in both Compile and InstallPackage.
>
Yes, but PostInstall will be run everytime one installs a new version, so  
there's only a small difference. The script should be that robust that it  
can be run several times without breaking anything.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to