Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire]Cleanup (when no tmpfs)

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: "Sergey A. Lipnevich" <sergeyli AT pisem.net>
  • To: Eric Sandall <sandalle AT hellhound.homeip.net>
  • Cc: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire]Cleanup (when no tmpfs)
  • Date: Sat, 27 Jul 2002 02:23:23 +0400 (MSD)

I'm writing more from experience than from code
analysis, but quite surprisingly the answer is "both".
POST_INSTALL is definitely not called if the BUILD
fails, because it usually contains some kind of server
restart code AFAIR. rm_source_dir is called also on
success, because if the spell fails and nothing is done
manually, the empty directory in /usr/src remains after
reboot.

--Sergey.

Eric Sandall <sandalle AT hellhound.homeip.net>:

>
> Sergey A. Lipnevich said:
> > cast::cast_spell(822) calls subroutines::rm_source_dir
> > on line 836 which does the job quite nicely already.
> > Calling it from POST_INSTALL is wrong because this one
> > is only called on _successful_ installation.
>
> Which one is only called on a successfull
installation: rm_source_dir or
> POST_INSTALL?
>
> I meant to have the $SOURCE_DIRECTORY removed _only_
if the spell cast
> successfully, so whichever of these calls
subroutines::rm_source_dir
> _only_ when cast::cast_spell is successful is the one
I want.
>
> I am just asking for clarification since I'm not sure
what "this one" is
> referring to. :)
>




Archive powered by MHonArc 2.6.24.

Top of Page