delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG |
X-Spam-Check-By: | sourceware.org |
Subject: | Re: How does setup.exe cope with upgrading of already installed packages if there exist modification in installed files? |
From: | "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net> |
To: | cygwin <cygwin AT cygwin DOT com> |
Date: | Wed, 19 Oct 2011 12:01:15 -0500 |
In-Reply-To: | <25jt97t858qgm15f1ot2b2m4vgjrq69aqo@4ax.com> |
References: | <j7m7oe$72e$1 AT dough DOT gmane DOT org> <25jt97t858qgm15f1ot2b2m4vgjrq69aqo AT 4ax DOT com> |
Message-ID: | <1319043677.4668.13.camel@YAAKOV04> |
Mime-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Wed, 2011-10-19 at 09:27 -0400, Andrew Schulman wrote: > This is up to each package maintainer. Current best practice - at least, > as of a year or two ago when I asked about it on cygwin-apps I think - is > to include: > > (1) a default config file in /etc/defaults/etc; > (2) a preremove script that removes the existing config file iff it hasn't > change from the default; and > (3) a postinstall script that installs the default config into /etc if no > other config file is already there. > > If all three of those are present, then a package upgrade will replace the > existing config files if and only if they haven't changed since they were > installed. If they have changed, then it's up to the user to merge the old > and new configs. > > cygport provides automatic support for (1) and (3) above if you call e.g. > > make_etc_defaults /etc/lftp.conf > > To complete the set, package maintainers have to separately include a > simple preremove script, e.g. Actually, cygport handles (2) as well. No further intervention should be necessary once make_etc_defaults is called. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |