www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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: | <50698DC4.2070305@gmail.com> |
Date: | Mon, 01 Oct 2012 14:34:12 +0200 |
From: | marco atzeri <marco DOT atzeri AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
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> <506980A4 DOT 3030605 AT freesbee DOT fr> |
In-Reply-To: | <506980A4.3030605@freesbee.fr> |
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 10/1/2012 1:38 PM, Vincent Rivière wrote: > On 01/10/2012 13:24, marco atzeri wrote: >> cygcheck -c <package> > > Thanks, this is what I looked for. > > However, I notice that: > > 1) If the .lst.gz file is missing, "cygcheck -c <package>" still reports > OK. a package with a missing .lst.gz , should be a obsolete and empty. Usually are package labels left to pull in the alternative package. > > 2) When testing a missing package, "cygcheck -c <package>" does not > output any status line, but its return code is still 0. This is not easy > to use from scripts. > try using grep. I damaged the xv package as following: $ cygcheck -c -v xz Cygwin Package Information Last downloaded files to: e:\downloads\cygwin_cache Last downloaded files from: http://mirrors.dotsrc.org/cygwin/ Package Version Status Missing file: /usr/bin/xz.exe from package xz xz 5.0.2_20110517-1 Incomplete using grep I can find the failing package $ cygcheck -c xz |grep OK ; echo $? 1 while usually I have $ cygcheck -c xz |grep OK ; echo $? xz 5.0.2_20110517-1 OK 0 Regards Marco -- 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 |