+2003-08-16 David Rothenberger <daveroth@acm.org>
+
+ * dump_setup.cc (package_find): Don't stop searching on missing
+ file list.
+ (package_list): Ditto.
+
+2003-08-16 Igor Pechtchanski <pechtcha@cs.nyu.edu>
+
+ * dump_setup.cc: (package_list): Make output terse unless
+ verbose requested. Fix formatting.
+ (package_find): Ditto.
+
2003-08-15 Corinna Vinschen <corinna@vinschen.de>
* cygcheck.cc (main): Fix some formatting and help text printing.
{
FILE *fp = open_package_list (packages[i].name);
if (!fp)
- {
- if (verbose)
- printf ("Can't open file list /etc/setup/%s.lst.gz for package %s\n",
- packages[i].name, packages[i].name);
- return;
- }
+ {
+ if (verbose)
+ printf ("Can't open file list /etc/setup/%s.lst.gz for package %s\n",
+ packages[i].name, packages[i].name);
+ continue;
+ }
- printf ("Package: %s-%s\n", packages[i].name, packages[i].ver);
+ if (verbose)
+ printf ("Package: %s-%s\n", packages[i].name, packages[i].ver);
char buf[MAX_PATH + 1];
while (fgets (buf, MAX_PATH, fp))
{
char *lastchar = strchr(buf, '\n');
if (lastchar[-1] != '/')
- printf (" /%s", buf);
+ printf ("%s/%s", (verbose?" ":""), buf);
}
fclose (fp);
{
FILE *fp = open_package_list (packages[i].name);
if (!fp)
- {
- if (verbose)
- printf ("Can't open file list /etc/setup/%s.lst.gz for package %s\n",
- packages[i].name, packages[i].name);
- return;
- }
+ continue;
char buf[MAX_PATH + 2];
buf[0] = '/';
if (!a && is_alias)
a = match_argv (argv, filename + 4);
if (a > 0)
- printf ("%s-%s\n", packages[i].name, packages[i].ver);
+ {
+ if (verbose)
+ printf ("%s: found in package ", filename);
+ printf ("%s-%s\n", packages[i].name, packages[i].ver);
+ }
}
}