| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| To: | "Michael A. Chase" <mchase AT ix DOT netcom DOT com> |
| Cc: | <cygwin-developers AT cygwin DOT com>, cygwin AT cygwin DOT com |
| Subject: | Re: Install and Uninstall Scripts |
| References: | <m3wv5i75bc DOT fsf AT appel DOT lilypond DOT org> |
| <20010709105557 DOT A19708 AT redhat DOT com> | |
| <00dc01c10895$0f8e2e10$6464648a AT ca DOT boeing DOT com> | |
| Organization: | Jan at Appel |
| From: | Jan Nieuwenhuizen <janneke AT gnu DOT org> |
| Date: | 10 Jul 2001 11:17:00 +0200 |
| In-Reply-To: | <00dc01c10895$0f8e2e10$6464648a@ca.boeing.com> ("Michael A. Chase"'s message of "Mon, 9 Jul 2001 09:33:30 -0700") |
| Message-ID: | <m3vgl1ta7n.fsf@appel.lilypond.org> |
| Lines: | 32 |
| User-Agent: | Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7 |
| MIME-Version: | 1.0 |
"Michael A. Chase" <mchase AT ix DOT netcom DOT com> writes:
> For uninstalls, I think it would probably work better if we agreed on a
> naming convention for a script or batch file that would be executed before
> any packages are deleted.
Yes, I thought about that too. Or actually, to have the script
executed before the specific package is deleted.
I'm afraid that to solve this problem entirely, we would need
preremove *and* postremove; and maybe something like Debian's purge.
But as long as setup.exe does it's own package management, this is
probably overkill; and I'd rather make a big improvement with a simple
patch, than try to go all the way.
The problem I wanted to solve (most) was for a package not to leave
anything behind after uninstall. That's why I would vote for
postremove rather than preremove, and have it act like purge. Maybe
it would be acceptable for a package like ssh not to purge the host
keys, but to delegate those things to /etc/postremove/cygwin.sh
> Maybe something like /etc/preuninstall/package-version.{sh,bat}.
Ok, my patch has something like /etc/postremove/package.{sh ? sh : bat}
that would be ok then?
Jan.
--
Jan Nieuwenhuizen <janneke AT gnu DOT org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |