X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG X-Spam-Check-By: sourceware.org Message-ID: <506980A4.3030605@freesbee.fr> Date: Mon, 01 Oct 2012 13:38:12 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= 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> In-Reply-To: <50697D8B.6070903@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 01/10/2012 13:24, marco atzeri wrote: > cygcheck -c Thanks, this is what I looked for. However, I notice that: 1) If the .lst.gz file is missing, "cygcheck -c " still reports OK. 2) When testing a missing package, "cygcheck -c " does not output any status line, but its return code is still 0. This is not easy to use from scripts. -- 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