Re: Check if a package is installed

2012-10-04 Thread Vincent Rivière
n "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.co

Re: Check if a package is installed

2012-10-03 Thread Larry Hall (Cygwin)
On 10/3/2012 6:02 PM, Vincent Rivière wrote: On 01/10/2012 13:24, marco atzeri wrote: cygcheck -c I wonder how much "cygcheck -c" is reliable. For example, the libmpfr4 package. I delete /bin/cygmpfr-4.dll and /etc/setup/libmpfr4.lst.gz As a result, I can't compile sources with gcc anymore

Re: Check if a package is installed

2012-10-03 Thread Vincent Rivière
On 01/10/2012 13:24, marco atzeri wrote: cygcheck -c I wonder how much "cygcheck -c" is reliable. For example, the libmpfr4 package. I delete /bin/cygmpfr-4.dll and /etc/setup/libmpfr4.lst.gz As a result, I can't compile sources with gcc anymore due to the missing cygmpfr-4.dll. But "cygc

Re: Check if a package is installed

2012-10-01 Thread marco atzeri
On 10/1/2012 1:38 PM, Vincent Rivière wrote: 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. a package with a missing .lst.gz , should be a obsolete and empt

Re: Check if a package is installed

2012-10-01 Thread Vincent Rivière
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 stil

Re: Check if a package is installed

2012-10-01 Thread marco atzeri
On 10/1/2012 1:03 PM, Vincent Rivière wrote: Hello. I would like to know how to reliably test if a Cygwin package is already installed (just like setup.exe does). Currently, I test the existence of /etc/setup/.lst.gz. It works perfectly for me, but a user reported to me that that file was missi

Check if a package is installed

2012-10-01 Thread Vincent Rivière
Hello. I would like to know how to reliably test if a Cygwin package is already installed (just like setup.exe does). Currently, I test the existence of /etc/setup/.lst.gz. It works perfectly for me, but a user reported to me that that file was missing sometimes. I see there is also packag