delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/24/12:38:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 24 Nov 2004 12:36:42 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Harig, Mark" <maharig AT idirect DOT net>
cc: cygwin AT cygwin DOT com
Subject: RE: Upgraded man command
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E01459C02@ex02.svr.idirect.net>
Message-ID: <Pine.GSO.4.61.0411241232030.14489@slinky.cs.nyu.edu>
References: <BADF3C947A1BD54FBA75C70C241B0B9E01459C02 AT ex02 DOT svr DOT idirect DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 24 Nov 2004, Harig, Mark wrote:

> > From: Christopher Faylor
> > Sent: Wednesday, November 24, 2004 11:57 AM
> > Subject: Re: Upgraded man command
> >
> > This seems like a good candidate for bugzilla:
> >
> > http://sourceware.org/bugzilla/enter_bug.cgi?product=cygwin
> >
> > The component for the bug would be "Cygwin Applications".
>
> > -----Original Message-----
> > From: Igor Pechtchanski
> > Sent: Wednesday, November 24, 2004 12:06 PM
> > Subject: RE: Upgraded man command
> >
> > There's always the solution that base-files uses for replacing various
> > config files -- it checks whether the file is the same as the default
> > in the preremove script, and erases it if so.  Then the postinstall
> > script copies the new default, and the config file is up-to-date.
> > This won't work if the users edited their config files, but should
> > work in most cases.
>
> OK.  I will submit a bug report suggesting that
> /etc/preremove/base-files-manifest.lst be updated
> to include /usr/share/misc/man.conf.

Sure, but that'll only work if base-files is reinstalled/upgraded at the
same time as the man package.  If we want the man package to be
self-contained, we should add the same logic that's in
/etc/preremove/base-files.sh to /etc/preremove/man.sh.

Incidentally, the code that looks through the manifest file and does the
comparisons can be factored out to something like
/etc/preremove/remove-defaults.sh, and then invoked from both man.sh and
base-files.sh as "/etc/preremove/remove-defaults.sh
/etc/preremove/man-manifest.lst" or "/etc/preremove/remove-defaults.sh
/etc/preremove/base-files-manifest.lst", respectively.  Unless we ever get
a package called "remove-defaults", this should be safe to do.  The actual
script can be part of the base-files package (once setup is changed to run
all preremove scripts first, before removing package contents).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019