delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/04/04:54:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <506D4EC3.30201@freesbee.fr>
Date: Thu, 04 Oct 2012 10:54:27 +0200
From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= <vincent DOT riviere AT freesbee DOT fr>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.7) Gecko/20120824 Thunderbird/10.0.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Check if a package is installed
References: <50697891 DOT 7030200 AT freesbee DOT fr> <50697D8B DOT 6070903 AT gmail DOT com> <506CB5E2 DOT 3010206 AT freesbee DOT fr> <506CC4B3 DOT 4060606 AT cygwin DOT com>
In-Reply-To: <506CC4B3.4060606@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 04/10/2012 01:05, Larry Hall (Cygwin) wrote:
> Well it has to use something to validate the package. The data it
> uses is the list of files in the .lst.gz file you deleted. So it
> can't do allot of validating without that metadata.

Indeed.

> But I suppose it would make sense to not return "OK" if the list of
> files is missing.

Sure.

So I will continue to just test the presence of the .lst.gz to check if 
a package is installed:
- missing: not correctly installed
- present: installed (correctly or corrupted)

-- 
Vincent Rivière

--
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

- Raw text -


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