[PATCH] Allow logging of {pre,post}remove scripts
Igor Pechtchanski
pechtcha@cs.nyu.edu
Mon Mar 24 18:20:00 GMT 2003
Brian,
Replies inline below.
On Mon, 24 Mar 2003, Brian Keener wrote:
> Igor Pechtchanski wrote:
> > This patch extends logging support to preremove/postremove scripts.
> > Igor
> > =================
> >
> Igor,
>
> gave the patch a shot on my Win2k and Win95 laptops and reinstalling
> gcc-mingw an inetutils and the Command window seems to be gone but other
> than the reference to install of the gcc-mingw preremove script I could
> find nothing in setup.log.full (this is the right place for this one
> right) about its having been executed. The postinstall gcc-mingw script
> does have a reference for its install and its execution - is that what I
> should see as well for the preremove.
Yes, the preremove scripts should also be logged to setup.log.full.
I'm not sure I understand the above, though - was the preremove script
logged or wasn't it? The gcc-mingw preremove script's output should
be the following one line: "*** Removing gcc-mingw files. Please wait. ***"
and should be preceded by "running: C:\cygwin\bin\sh.exe -c
/etc/preremove/gcc-mingw.sh".
You're welcome to send me the resulting setup.log.full off-list if you're
unsure whether the logging worked.
> I also noticed when I reinstalled gcc-mingw that a gcc-mingw.sh was
> created in preremove and postinstall and as we have already tested in
> postinstall it gets renamed to gcc-mingw.sh.done but in preremove it
> appears to be copied (not moved or renamed) to gcc-mingw.sh.done - so
> then there are two in preremove - a done and a not done.
This is fine. It is renamed. But remember, you're *reinstalling* the
package. The newly installed copy of the package will again contain a
/etc/preremove/gcc-mingw.sh. :-)
> Hope this helps
> bk
Yes, thanks for testing.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
-- /usr/games/fortune
More information about the Cygwin-apps
mailing list