summaryrefslogtreecommitdiffstats
path: root/winsup/utils/dump_setup.cc
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in: Detect existence of mingw zlib headers and libraries. BuildChristopher Faylor2003-09-081-25/+29
| | | | | | | | | | | cygcheck wihtout package checking if they are unavailable. * dump_setup.cc: Generate dummy zlib macros when zlib is not available. (open_package_list): Use zlib functions to uncompress package lists. Return gzFile rather than FILE *. (check_package_files): Change fp to gzFile to accommodate zlib functions. Use gzgets to read from package file. Use gzclose to close the handle. (package_list): Ditto. (package_find): Ditto.
* * dump_setup.cc (check_package_files): Don't fail on empty package.Christopher Faylor2003-09-061-3/+2
|
* * dump_setup.cc (check_package_files): Strip leading / and ./ fromCorinna Vinschen2003-08-171-0/+6
| | | | package file names.
* * dump_setup.cc (package_find): Don't stop searching on missingCorinna Vinschen2003-08-161-15/+15
| | | | | | | | | file list. (package_list): Ditto. * dump_setup.cc: (package_list): Make output terse unless verbose requested. Fix formatting. (package_find): Ditto.
* * cygcheck.cc (main): Fix some formatting and help text printing.Corinna Vinschen2003-08-151-35/+157
| | | | | | | | | | | | | | | | | | | | | | * cygcheck.cc (find_package,list_package): New global variables. (usage): Add "--find-package" and "--list-package" options, reformat output. (longopts, opts): Add "--find-package" and "--list-package" options. (main): Process the "--find-package" and "--list-package" flags. Add new semantic checks. Add calls to find_package() and list_package(). * dump_setup.cc: Fix header comment. (match_argv): Change return type to int to distinguish between real matches and default ones. (open_package_list): New static function. (check_package_files): Factor out opening the package list file into open_package_list(). (get_packages): New static function. (dump_setup): Factor out getting a list of packages into get_packages(). (package_list, package_find): New global functions.
* * dump_setup.cc (check_package_files): Fix extra '/' in filename.Corinna Vinschen2003-08-131-4/+4
| | | | Resize command buffer. Fix buffer overflow bug.
* * dump_setup.cc (dump_setup): Check for the existence of the package list file.Christopher Faylor2003-08-101-15/+31
| | | | Rework slightly to use static buffer for popen commands.
* * dump_setup.cc (version_len): New static variable.Christopher Faylor2003-08-091-7/+113
| | | | | | | | | | (could_not_access,directory_exists): New static function. (file_exists): Ditto. (check_package_files): Ditto. (dump_setup): Check the contents of each package if check_files is true and output the result in the "Status" column. Flush output after each package. * dump_setup.cc (dump_setup): Remove redundant null check. Add informative message if package info not found.
* * dump_setup.cc (compar): Use case insensitive comparisons.Christopher Faylor2003-02-071-11/+5
| | | | | (dump_setup): Calculate package_len based on already used "len". Don't bother with version_len.
* * dump_setup.cc (dump_setup): Compute the longest package nameCorinna Vinschen2003-02-071-1/+7
| | | | and align columns properly.
* * dump_setup.cc (parse_filename): Don't consider '_' part of the version.Christopher Faylor2002-01-291-1/+1
|
* * cygcheck.cc (scan_registry): Open registry with read-only access.Christopher Faylor2001-11-121-1/+1
| | | | | | (main): Reflect argument change for dump_setup. * dump_setup.cc (dump_setup): Add preliminary extra argument for future use. * path.cc (read_mounts): Open registry with read-only access.
* * cygcheck.cc (main): Display package info when '-s' is specified.Christopher Faylor2001-11-111-5/+3
| | | | | * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort packages output.
* * dump_setup.cc: New file.Christopher Faylor2001-11-111-0/+251
* Makefile.in: Add info for dump_setup.o. * cygcheck.cc (main): Recognize '-c' option for checking setup installed base. * path.cc (cygpath): Read mount table if not loaded.