This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

criteria for running preremove scripts?


To try and test the new /etc/preremove/~~bash.sh bundled with
bash-3.0-7, I reran setup and selected reinstall on bash.  But looking
in /var/log/setup.log.full, the script was removed without ever
running, and looking in /etc/preremove, ~~bash.sh.done was never
created.  Does the preremove logic in setup.exe depend on the script
having the same name as the package that is being removed?  If so,
then ~~bash.sh will never be run, it would have to be named
bash.sh.  But changing the name would be problematic because the
preremove script attempts to remove /bin/sh, which would invalidate
all subsequent preremove scripts.  This needs to be one of the things
looked at before the next setup.exe is released.

--
Eric Blake


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]